Make this code a little more readable.

llvm-svn: 108968
This commit is contained in:
Dan Gohman 2010-07-20 23:49:44 +00:00
parent 7373bd9973
commit afbe4a7a10
1 changed files with 4 additions and 2 deletions

View File

@ -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;