Use parameter attribute store (soon to be renamed) for
[oota-llvm.git] / lib / Transforms / Scalar / LoopUnswitch.cpp
index aa9158ed5021d6181f55b08b8de8b224d0b13ff4..178bf783971a96cc6401defec4373bce608c7bf5 100644 (file)
@@ -430,7 +430,7 @@ bool LoopUnswitch::UnswitchIfProfitable(Value *LoopCond, Constant *Val){
   Function *F = loopHeader->getParent();
 
   // Do not unswitch if the function is optimized for size.
-  if (F->hasNote(FN_NOTE_OptimizeForSize))
+  if (F->hasNote(ParamAttr::FN_NOTE_OptimizeForSize))
     return false;
 
   // Check to see if it would be profitable to unswitch current loop.