Skip to content

Commit 525a961

Browse files
committed
nit: shadowed var, test triple
1 parent bccad5d commit 525a961

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clang/lib/CodeGen/CGStmt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,8 +1370,8 @@ void CodeGenFunction::EmitForStmt(const ForStmt &S,
13701370
// match existing loop stepping behaviour. FIXME: We could have the branch
13711371
// as the backup location for the condition, which would probably be a
13721372
// better experience (no jumping to the brace).
1373-
if (auto *I = dyn_cast<llvm::Instruction>(BoolCondVal))
1374-
addInstToNewSourceAtom(I, nullptr);
1373+
if (auto *CondI = dyn_cast<llvm::Instruction>(BoolCondVal))
1374+
addInstToNewSourceAtom(CondI, nullptr);
13751375
addInstToNewSourceAtom(I, nullptr);
13761376

13771377
if (ExitBlock != LoopExit.getBlock()) {

clang/test/DebugInfo/KeyInstructions/for.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// RUN: %clang_cc1 -gkey-instructions -x c++ %s -debug-info-kind=line-tables-only -emit-llvm -o - \
1+
// RUN: %clang_cc1 -triple x86_64-linux-gnu -gkey-instructions -x c++ %s -debug-info-kind=line-tables-only -emit-llvm -o - \
22
// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank
33

4-
// RUN: %clang_cc1 -gkey-instructions -x c %s -debug-info-kind=line-tables-only -emit-llvm -o - \
4+
// RUN: %clang_cc1 -triple x86_64-linux-gnu -gkey-instructions -x c %s -debug-info-kind=line-tables-only -emit-llvm -o - \
55
// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank
66

77
// Perennial quesiton: should the inc be its own source atom or not

0 commit comments

Comments
 (0)