[clang] 842c5c7 - Fix shadow variable warning. NFC.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 2 03:41:43 PST 2020
Author: Simon Pilgrim
Date: 2020-03-02T11:41:20Z
New Revision: 842c5c79945ebe664bf113a108eaba495ac0b6d4
URL: https://github.com/llvm/llvm-project/commit/842c5c79945ebe664bf113a108eaba495ac0b6d4
DIFF: https://github.com/llvm/llvm-project/commit/842c5c79945ebe664bf113a108eaba495ac0b6d4.diff
LOG: Fix shadow variable warning. NFC.
Added:
Modified:
clang/lib/CodeGen/CGBuiltin.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index ba3b14cac217..fbb397ba3cfe 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -1521,8 +1521,7 @@ static llvm::Value *dumpRecord(CodeGenFunction &CGF, QualType RType,
// We check whether we are in a recursive type
if (CanonicalType->isRecordType()) {
- Value *TmpRes =
- dumpRecord(CGF, CanonicalType, FieldPtr, Align, Func, Lvl + 1);
+ TmpRes = dumpRecord(CGF, CanonicalType, FieldPtr, Align, Func, Lvl + 1);
Res = CGF.Builder.CreateAdd(TmpRes, Res);
continue;
}
More information about the cfe-commits
mailing list