mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-03 01:48:15 +00:00
Reset the debug location even if the instruction was a terminator.
llvm-svn: 101272
This commit is contained in:
parent
9ed196804f
commit
c94abce286
@ -260,13 +260,11 @@ void SelectionDAGISel::SelectBasicBlock(BasicBlock *LLVMBB,
|
||||
for (BasicBlock::iterator I = Begin; I != End && !SDB->HasTailCall; ++I) {
|
||||
SetDebugLoc(I, SDB, 0, MF);
|
||||
|
||||
if (!isa<TerminatorInst>(I)) {
|
||||
// Visit the instruction. Terminators are handled below.
|
||||
if (!isa<TerminatorInst>(I))
|
||||
SDB->visit(*I);
|
||||
|
||||
// Set the current debug location back to "unknown" so that it doesn't
|
||||
// spuriously apply to subsequent instructions.
|
||||
ResetDebugLoc(SDB, 0);
|
||||
}
|
||||
ResetDebugLoc(SDB, 0);
|
||||
}
|
||||
|
||||
if (!SDB->HasTailCall) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user