AliasSet: Simplify mergeSetIn
[oota-llvm.git] / lib / Analysis / BranchProbabilityInfo.cpp
index 4e083d2f877bc2af810fec95d1900efe7d4b2dd8..bbd87505952216d88b8cad5f042b36e03ecf7288 100644 (file)
@@ -180,7 +180,7 @@ bool BranchProbabilityInfo::calcMetadataWeights(BasicBlock *BB) {
   if (!isa<BranchInst>(TI) && !isa<SwitchInst>(TI))
     return false;
 
-  MDNode *WeightsNode = TI->getMDNode(LLVMContext::MD_prof);
+  MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof);
   if (!WeightsNode)
     return false;