aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-08-09 23:14:39 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-08-09 23:14:39 +0000
commitea884cb720ba386392f9820267b3247869bcda3e (patch)
tree307ffd62b5d3675a93c8193a866781373eced290 /lib/CodeGen
parente617f9177e6f3111c411853f99fe19f77bd65cc3 (diff)
downloadexternal_llvm-ea884cb720ba386392f9820267b3247869bcda3e.zip
external_llvm-ea884cb720ba386392f9820267b3247869bcda3e.tar.gz
external_llvm-ea884cb720ba386392f9820267b3247869bcda3e.tar.bz2
Bug fix. ~1U marks the val# dead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40975 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SimpleRegisterCoalescing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp
index cead5e5..0b3d178 100644
--- a/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/lib/CodeGen/SimpleRegisterCoalescing.cpp
@@ -645,7 +645,7 @@ bool SimpleRegisterCoalescing::JoinIntervals(LiveInterval &LHS, LiveInterval &RH
// Otherwise, use the specified value #.
LHSValNoAssignments[VN] = RHSValID;
if (VN != (unsigned)RHSValID)
- ValueNumberInfo[VN].def = RHSValNoInfo.def;
+ ValueNumberInfo[VN]->def = ~1U; // Now this val# is dead.
else
ValueNumberInfo[VN] = RHSValNoInfo;
}