Unbreak build.
authorDaniel Dunbar <daniel@zuster.org>
Sat, 27 Sep 2008 00:22:09 +0000 (00:22 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 27 Sep 2008 00:22:09 +0000 (00:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56727 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelDAGToDAG.cpp

index b5c0c35d12e22308192bbb5823fd81d89f4a3f78..6cc044c7e8518a1928af41d0f2b0ac8efb6badc0 100644 (file)
@@ -658,7 +658,8 @@ void X86DAGToDAGISel::InstructionSelect() {
   CurBB = BB;  // BB can change as result of isel.
   if (!OptForSize) {
     const Function *F = CurDAG->getMachineFunction().getFunction();
-    OptForSize = !F->isDeclaration() && F->hasNote(Attribute::OptimizeForSize);
+    OptForSize = !F->isDeclaration() && 
+                 F->hasFnAttr(Attribute::OptimizeForSize);
   }
 
   DEBUG(BB->dump());