Remove the llvm-local DW_TAG_vector_type tag and add a test to
[oota-llvm.git] / lib / CodeGen / CodePlacementOpt.cpp
index 75dbf72dd0c1b95537d794138c9085af3b9943fd..24518443a7685339c4f35b46dc6948fd77a82b94 100644 (file)
@@ -373,7 +373,8 @@ bool CodePlacementOpt::OptimizeIntraLoopEdges(MachineFunction &MF) {
 ///
 bool CodePlacementOpt::AlignLoops(MachineFunction &MF) {
   const Function *F = MF.getFunction();
-  if (F->getFnAttributes().hasAttribute(Attribute::OptimizeForSize))
+  if (F->getAttributes().hasAttribute(AttributeSet::FunctionIndex,
+                                      Attribute::OptimizeForSize))
     return false;
 
   unsigned Align = TLI->getPrefLoopAlignment();