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 | 02a4da2c2212652d29feef3c1426c47e2ccb323c (patch) | |
tree | 025d671efafd703bb3775929a36454d798c33e4e /lib | |
parent | 0b3c079cd59f7d0d664ddf6365e6466704c912f6 (diff) | |
download | external_llvm-02a4da2c2212652d29feef3c1426c47e2ccb323c.zip external_llvm-02a4da2c2212652d29feef3c1426c47e2ccb323c.tar.gz external_llvm-02a4da2c2212652d29feef3c1426c47e2ccb323c.tar.bz2 |
Unbreak build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56727 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86ISelDAGToDAG.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp index b5c0c35..6cc044c 100644 --- a/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/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()); |