Author: Amr Hesham
Date: 2025-03-20T08:07:28+01:00
New Revision: 7c6479021382b5cf16619f0089b9d86536630e26

URL: 
https://github.com/llvm/llvm-project/commit/7c6479021382b5cf16619f0089b9d86536630e26
DIFF: 
https://github.com/llvm/llvm-project/commit/7c6479021382b5cf16619f0089b9d86536630e26.diff

LOG: [CIR] Follow up for addressing style comment (#132093)

Follow up PR to address style comment
(https://github.com/llvm/llvm-project/pull/131657#discussion_r2004197917)

Added: 
    

Modified: 
    clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp 
b/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
index 83226ed8680bb..9a3f956ecbebe 100644
--- a/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+++ b/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
@@ -288,7 +288,7 @@ mlir::Value 
CIRAttrToValue::visitCirAttr(cir::ConstArrayAttr attr) {
 
 /// ZeroAttr visitor.
 mlir::Value CIRAttrToValue::visitCirAttr(cir::ZeroAttr attr) {
-  auto loc = parentOp->getLoc();
+  mlir::Location loc = parentOp->getLoc();
   return rewriter.create<mlir::LLVM::ZeroOp>(
       loc, converter->convertType(attr.getType()));
 }


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to