File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
test/DebugInfo/KeyInstructions Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 ()) {
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments