[llvm-commits] [llvm] r108968 - /llvm/trunk/lib/Transforms/IPO/StripSymbols.cpp
Dan Gohman
gohman at apple.com
Tue Jul 20 16:49:44 PDT 2010
Author: djg
Date: Tue Jul 20 18:49:44 2010
New Revision: 108968
URL: http://llvm.org/viewvc/llvm-project?rev=108968&view=rev
Log:
Make this code a little more readable.
Modified:
llvm/trunk/lib/Transforms/IPO/StripSymbols.cpp
Modified: llvm/trunk/lib/Transforms/IPO/StripSymbols.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/StripSymbols.cpp?rev=108968&r1=108967&r2=108968&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/StripSymbols.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/StripSymbols.cpp Tue Jul 20 18:49:44 2010
@@ -259,8 +259,10 @@
++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;
More information about the llvm-commits
mailing list