mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 03:56:16 +08:00
Make this code a little more readable.
llvm-svn: 108968
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user