diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-09-27 00:22:09 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-09-27 00:22:09 +0000 |
commit | 1d5e766016903b3adfc0ed54202965177d862b3b (patch) | |
tree | 07fb351b5c70754625172e50068a9b57ef259389 | |
parent | ba3d0b7c00646db598685b408353ca3f22d9e679 (diff) | |
download | bcm5719-llvm-1d5e766016903b3adfc0ed54202965177d862b3b.tar.gz bcm5719-llvm-1d5e766016903b3adfc0ed54202965177d862b3b.zip |
Unbreak build.
llvm-svn: 56727
-rw-r--r-- | llvm/lib/Target/X86/X86ISelDAGToDAG.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp index b5c0c35d12e..6cc044c7e85 100644 --- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -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()); |