mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 10:04:33 +00:00
Make this code a little more readable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108968 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
333a94765a
commit
549979f550
@ -259,8 +259,10 @@ static bool StripDebugInfo(Module &M) {
|
|||||||
++FI)
|
++FI)
|
||||||
for (BasicBlock::iterator BI = FI->begin(), BE = FI->end(); BI != BE;
|
for (BasicBlock::iterator BI = FI->begin(), BE = FI->end(); BI != BE;
|
||||||
++BI) {
|
++BI) {
|
||||||
Changed |= !BI->getDebugLoc().isUnknown();
|
if (!BI->getDebugLoc().isUnknown()) {
|
||||||
BI->setDebugLoc(DebugLoc());
|
Changed = true;
|
||||||
|
BI->setDebugLoc(DebugLoc());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return Changed;
|
return Changed;
|
||||||
|
Loading…
Reference in New Issue
Block a user