X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FVMCore%2FMetadata.cpp;h=b4a981f3a02677339a3479ec786527d16f7d52bd;hb=9520cc2eae199f8974d5ed4f89ec43468be8f128;hp=822dbd9521d289d0ccbf8eb1384befffe6d7d682;hpb=f58c34d5315a35d489c5c203ae45430ccb53f973;p=oota-llvm.git diff --git a/lib/VMCore/Metadata.cpp b/lib/VMCore/Metadata.cpp index 822dbd9521d..b4a981f3a02 100644 --- a/lib/VMCore/Metadata.cpp +++ b/lib/VMCore/Metadata.cpp @@ -159,10 +159,10 @@ const Function *MDNode::getFunction() const { for (unsigned i = 0, e = getNumOperands(); i != e; ++i) { if (Value *V = getOperand(i)) { - if (MDNode *MD = dyn_cast(V)) + if (MDNode *MD = dyn_cast(V)) { if (const Function *F = MD->getFunction()) return F; - else - return getFunctionForValue(V); + else return getFunctionForValue(V); + } } } return NULL;