[llvm-commits] [llvm] r56727 - /llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp

Daniel Dunbar daniel at zuster.org
Fri Sep 26 17:22:10 PDT 2008


Author: ddunbar
Date: Fri Sep 26 19:22:09 2008
New Revision: 56727

URL: http://llvm.org/viewvc/llvm-project?rev=56727&view=rev
Log:
Unbreak build. 


Modified:
    llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp

Modified: llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp?rev=56727&r1=56726&r2=56727&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp Fri Sep 26 19:22:09 2008
@@ -658,7 +658,8 @@
   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());





More information about the llvm-commits mailing list