diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-20 23:49:44 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-20 23:49:44 +0000 |
commit | 549979f5509ef6ff14e1e46c141990deb8d8274e (patch) | |
tree | fd7349d4f1fbce628ae9b6e2ce5e350e46731a46 | |
parent | 333a94765a78e0d7057059c6cb05dba2330eddf0 (diff) |
Make this code a little more readable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108968 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/IPO/StripSymbols.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/StripSymbols.cpp b/lib/Transforms/IPO/StripSymbols.cpp index c74bad00b5..3bcaee3437 100644 --- 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) { - Changed |= !BI->getDebugLoc().isUnknown(); - BI->setDebugLoc(DebugLoc()); + if (!BI->getDebugLoc().isUnknown()) { + Changed = true; + BI->setDebugLoc(DebugLoc()); + } } return Changed; |