diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-03-19 23:26:52 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-03-19 23:26:52 +0000 |
commit | 8d5baa09f83e054d2c55576fedfe1cc73435f7c2 (patch) | |
tree | bfabea51b36d903aaeceb018e76f711eda243c24 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | 90b6edda75cc1ecec8de1b30ee359f12b57d3018 (diff) | |
download | bcm5719-llvm-8d5baa09f83e054d2c55576fedfe1cc73435f7c2.tar.gz bcm5719-llvm-8d5baa09f83e054d2c55576fedfe1cc73435f7c2.zip |
Fix the Win32 VS2008 build:
- Make type declarations match the struct/class keyword of the definition.
- Move AddSignalHandler into the namespace where it belongs.
- Correctly call functions from template base.
- Some other small changes.
With this patch, LLVM and Clang should build properly and with far less noise under VS2008.
llvm-svn: 67347
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 3a8f40faec5..29be67bf605 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -2042,7 +2042,7 @@ addIntervalsForSpills(const LiveInterval &li, if (CanFold && !Ops.empty()) { if (tryFoldMemoryOperand(MI, vrm, NULL, index, Ops, true, Slot,VReg)){ Folded = true; - if (FoundUse > 0) { + if (FoundUse) { // Also folded uses, do not issue a load. eraseRestoreInfo(Id, index, VReg, RestoreMBBs, RestoreIdxes); nI.removeRange(getLoadIndex(index), getUseIndex(index)+1); |