summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-12-26 23:12:42 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-12-26 23:12:42 +0000
commit2b14b80b6043650d259b85e419f2c80f97c4f1e3 (patch)
treec99578834c4b70f73c21bd65d1ad4495f005afe8 /llvm/lib/Transforms
parente96286cdf214476dacbc6c51f71138ca3ea70d96 (diff)
downloadbcm5719-llvm-2b14b80b6043650d259b85e419f2c80f97c4f1e3.tar.gz
bcm5719-llvm-2b14b80b6043650d259b85e419f2c80f97c4f1e3.zip
Fix warning.
llvm-svn: 147284
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
index bc70c51cc01..43d56ef0997 100644
--- a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
+++ b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
@@ -938,13 +938,14 @@ public:
void run(AllocaInst *AI, const SmallVectorImpl<Instruction*> &Insts) {
// Remember which alloca we're promoting (for isInstInList).
this->AI = AI;
- if (MDNode *DebugNode = MDNode::getIfExists(AI->getContext(), AI))
+ if (MDNode *DebugNode = MDNode::getIfExists(AI->getContext(), AI)) {
for (Value::use_iterator UI = DebugNode->use_begin(),
E = DebugNode->use_end(); UI != E; ++UI)
if (DbgDeclareInst *DDI = dyn_cast<DbgDeclareInst>(*UI))
DDIs.push_back(DDI);
else if (DbgValueInst *DVI = dyn_cast<DbgValueInst>(*UI))
DVIs.push_back(DVI);
+ }
LoadAndStorePromoter::run(Insts);
AI->eraseFromParent();
OpenPOWER on IntegriCloud