aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-10-06 17:30:07 +0000
committerDevang Patel <dpatel@apple.com>2008-10-06 17:30:07 +0000
commite4d4b8c53388643ade7081acc7f4d555b16e14aa (patch)
treef70fcc7feca5b1c5ed205867bd3ff608fcce0726 /lib/CodeGen
parent5fac55fafb53fde5c548bcd08e07418e9d8e549f (diff)
downloadexternal_llvm-e4d4b8c53388643ade7081acc7f4d555b16e14aa.zip
external_llvm-e4d4b8c53388643ade7081acc7f4d555b16e14aa.tar.gz
external_llvm-e4d4b8c53388643ade7081acc7f4d555b16e14aa.tar.bz2
Remove unncessary isDeclaration() checks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57179 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/LoopAligner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LoopAligner.cpp b/lib/CodeGen/LoopAligner.cpp
index 60e3f19..b8d0059 100644
--- a/lib/CodeGen/LoopAligner.cpp
+++ b/lib/CodeGen/LoopAligner.cpp
@@ -59,7 +59,7 @@ bool LoopAligner::runOnMachineFunction(MachineFunction &MF) {
return false; // Don't care about loop alignment.
const Function *F = MF.getFunction();
- if (!F->isDeclaration() && F->hasFnAttr(Attribute::OptimizeForSize))
+ if (F->hasFnAttr(Attribute::OptimizeForSize))
return false;
for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I) {