1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Unbreak build.

llvm-svn: 56727
This commit is contained in:
Daniel Dunbar 2008-09-27 00:22:09 +00:00
parent 85a19dcb9e
commit dc1d75b1b5

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