projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
333a947
)
Make this code a little more readable.
author
Dan Gohman
<gohman@apple.com>
Tue, 20 Jul 2010 23:49:44 +0000
(23:49 +0000)
committer
Dan Gohman
<gohman@apple.com>
Tue, 20 Jul 2010 23:49:44 +0000
(23:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108968
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/StripSymbols.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/StripSymbols.cpp
b/lib/Transforms/IPO/StripSymbols.cpp
index c74bad00b5542a7ab2c47119fe33d622e4df3230..3bcaee3437f707141b9f97b1449371218119ca2e 100644
(file)
--- a/
lib/Transforms/IPO/StripSymbols.cpp
+++ b/
lib/Transforms/IPO/StripSymbols.cpp
@@
-259,8
+259,10
@@
static bool StripDebugInfo(Module &M) {
++FI)
for (BasicBlock::iterator BI = FI->begin(), BE = FI->end(); BI != BE;
++BI) {
++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;
}
return Changed;