Unbreak build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56727 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2008-09-27 00:22:09 +00:00
parent 0b3c079cd5
commit 02a4da2c22

View 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());