From 02a4da2c2212652d29feef3c1426c47e2ccb323c Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sat, 27 Sep 2008 00:22:09 +0000 Subject: [PATCH] Unbreak build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56727 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86ISelDAGToDAG.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp index b5c0c35d12e..6cc044c7e85 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());