aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/StackSlotColoring.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-05-11 18:40:35 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-05-11 18:40:35 +0000
commit6c0889b77574915a0a749892c6bdba45c871ff29 (patch)
tree8cd6325a95842ebf21c8b95c918fba274fb4dd05 /lib/CodeGen/StackSlotColoring.cpp
parentc13b734801e96c20256f0659c5ead91ba95caea3 (diff)
downloadexternal_llvm-6c0889b77574915a0a749892c6bdba45c871ff29.tar.gz
external_llvm-6c0889b77574915a0a749892c6bdba45c871ff29.tar.bz2
external_llvm-6c0889b77574915a0a749892c6bdba45c871ff29.zip
Eliminate a compiler warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71456 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/StackSlotColoring.cpp')
-rw-r--r--lib/CodeGen/StackSlotColoring.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/StackSlotColoring.cpp b/lib/CodeGen/StackSlotColoring.cpp
index 18fe59f3b7..6caccf6551 100644
--- a/lib/CodeGen/StackSlotColoring.cpp
+++ b/lib/CodeGen/StackSlotColoring.cpp
@@ -599,6 +599,7 @@ void StackSlotColoring::UnfoldAndRewriteInstruction(MachineInstr *MI, int OldFI,
} else {
SmallVector<MachineInstr*, 4> NewMIs;
bool Success = TII->unfoldMemoryOperand(MF, MI, Reg, false, false, NewMIs);
+ Success = Success; // Silence compiler warning.
assert(Success && "Failed to unfold!");
MBB->insert(MI, NewMIs[0]);
++NumRegRepl;