From: Dan Gohman Date: Tue, 20 Jul 2010 23:49:44 +0000 (+0000) Subject: Make this code a little more readable. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=549979f5509ef6ff14e1e46c141990deb8d8274e;p=oota-llvm.git Make this code a little more readable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108968 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/StripSymbols.cpp b/lib/Transforms/IPO/StripSymbols.cpp index c74bad00b55..3bcaee3437f 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;