Unbreak build.

llvm-svn: 56727
This commit is contained in:
Daniel Dunbar 2008-09-27 00:22:09 +00:00
parent ba3d0b7c00
commit 1d5e766016
1 changed files with 2 additions and 1 deletions

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