forked from OSchip/llvm-project
parent
7373bd9973
commit
afbe4a7a10
|
@ -259,8 +259,10 @@ static bool StripDebugInfo(Module &M) {
|
|||
++FI)
|
||||
for (BasicBlock::iterator BI = FI->begin(), BE = FI->end(); BI != BE;
|
||||
++BI) {
|
||||
Changed |= !BI->getDebugLoc().isUnknown();
|
||||
BI->setDebugLoc(DebugLoc());
|
||||
if (!BI->getDebugLoc().isUnknown()) {
|
||||
Changed = true;
|
||||
BI->setDebugLoc(DebugLoc());
|
||||
}
|
||||
}
|
||||
|
||||
return Changed;
|
||||
|
|
Loading…
Reference in New Issue