File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
test/DebugInfo/KeyInstructions Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1488,8 +1488,8 @@ CodeGenFunction::EmitCXXForRangeStmt(const CXXForRangeStmt &S,
1488
1488
// match existing loop stepping behaviour. FIXME: We could have the branch as
1489
1489
// the backup location for the condition, which would probably be a better
1490
1490
// experience.
1491
- if (auto *I = dyn_cast<llvm::Instruction>(BoolCondVal))
1492
- addInstToNewSourceAtom (I , nullptr );
1491
+ if (auto *CondI = dyn_cast<llvm::Instruction>(BoolCondVal))
1492
+ addInstToNewSourceAtom (CondI , nullptr );
1493
1493
addInstToNewSourceAtom (I, nullptr );
1494
1494
1495
1495
if (ExitBlock != LoopExit.getBlock ()) {
Original file line number Diff line number Diff line change 1
- // RUN: %clang_cc1 -gkey-instructions %s -debug-info-kind=line-tables-only -emit-llvm -o - \
1
+ // RUN: %clang_cc1 -triple x86_64-linux-gnu - gkey-instructions %s -debug-info-kind=line-tables-only -emit-llvm -o - \
2
2
// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank
3
3
4
- // Perennial quesiton : should the inc be its own source atom or not
4
+ // Perennial question : should the inc be its own source atom or not
5
5
// (currently it is).
6
6
7
7
// FIXME: See do.c and while.c regarding cmp and cond br groups.
8
8
9
9
// The stores in the setup (stores to __RANGE1, __BEGIN1, __END1) are all
10
10
// marked as Key. Unclear whether that's desirable. Keep for now as that's
11
- // least risky.
11
+ // least risky (at worst it introduces an unecessary step while debugging,
12
+ // as opposed to potentially losing one we want).
12
13
13
14
// Check the conditional branch (and the condition) in FOR_COND and
14
15
// unconditional branch in FOR_BODY are Key Instructions.
You can’t perform that action at this time.
0 commit comments