aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/LiveVariables.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-02-21 19:35:27 +0000
committerBill Wendling <isanbard@gmail.com>2008-02-21 19:35:27 +0000
commitf01bd9e712501f9e9b5803ab0c11e96851a82775 (patch)
tree5b7b6e4de11736b99f2f1ddec2fb5db20cd63104 /lib/CodeGen/LiveVariables.cpp
parentffe75c2d07ed465345a5fba30f433a4f8d375dd9 (diff)
downloadexternal_llvm-f01bd9e712501f9e9b5803ab0c11e96851a82775.zip
external_llvm-f01bd9e712501f9e9b5803ab0c11e96851a82775.tar.gz
external_llvm-f01bd9e712501f9e9b5803ab0c11e96851a82775.tar.bz2
Clear PhysRegPartUse for the sub register as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47453 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveVariables.cpp')
-rw-r--r--lib/CodeGen/LiveVariables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveVariables.cpp b/lib/CodeGen/LiveVariables.cpp
index 4b428d6..48bf809 100644
--- a/lib/CodeGen/LiveVariables.cpp
+++ b/lib/CodeGen/LiveVariables.cpp
@@ -246,7 +246,7 @@ void LiveVariables::HandlePhysRegUse(unsigned Reg, MachineInstr *MI) {
// Now reset the use information for the sub-registers.
for (const unsigned *SubRegs = RegInfo->getSubRegisters(Reg);
unsigned SubReg = *SubRegs; ++SubRegs) {
- // FIXME: Should we do: "PhysRegPartUse[SubReg] = NULL;" here?
+ PhysRegPartUse[SubReg] = NULL;
PhysRegInfo[SubReg] = MI;
PhysRegUsed[SubReg] = true;
}