Remove 'virtual' keyword from methods markedwith 'override' keyword.
[oota-llvm.git] / lib / Analysis / CodeMetrics.cpp
index 4a05888170a5a04ebfd2a6db48d3680fa8bea0d9..4c8a093684f62c59cd5799b627fcc794fc8fc176 100644 (file)
@@ -65,11 +65,11 @@ void CodeMetrics::analyzeBasicBlock(const BasicBlock *BB,
       ++NumVectorInsts;
 
     if (const CallInst *CI = dyn_cast<CallInst>(II))
-      if (CI->hasFnAttr(Attribute::NoDuplicate))
+      if (CI->cannotDuplicate())
         notDuplicatable = true;
 
     if (const InvokeInst *InvI = dyn_cast<InvokeInst>(II))
-      if (InvI->hasFnAttr(Attribute::NoDuplicate))
+      if (InvI->cannotDuplicate())
         notDuplicatable = true;
 
     NumInsts += TTI.getUserCost(&*II);