aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/VirtRegMap.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-04 06:47:48 +0000
committerChris Lattner <sabre@nondot.org>2006-01-04 06:47:48 +0000
commit0511055276e36fa23421495cb790b17496909dfe (patch)
tree0d7a15cf237aaa988c6f427d2c8a3eda1a3b75bf /llvm/lib/CodeGen/VirtRegMap.cpp
parentbe45b5e9484421c4620bd1e42f8cbf0b9bb76b1e (diff)
downloadllvm-0511055276e36fa23421495cb790b17496909dfe.zip
llvm-0511055276e36fa23421495cb790b17496909dfe.tar.gz
llvm-0511055276e36fa23421495cb790b17496909dfe.tar.bz2
Add an assertion, update DefInst even though no one uses it (dangling pointers
don't help anyone) llvm-svn: 25081
Diffstat (limited to 'llvm/lib/CodeGen/VirtRegMap.cpp')
-rw-r--r--llvm/lib/CodeGen/VirtRegMap.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp
index 26498b7..f27ae2a 100644
--- a/llvm/lib/CodeGen/VirtRegMap.cpp
+++ b/llvm/lib/CodeGen/VirtRegMap.cpp
@@ -393,6 +393,7 @@ void LocalSpiller::RewriteMBB(MachineBasicBlock &MBB, const VirtRegMap &VRM) {
// Otherwise, reload it and remember that we have it.
PhysReg = VRM.getPhys(VirtReg);
+ assert(PhysReg && "Must map virtreg to physreg!");
const TargetRegisterClass* RC =
MBB.getParent()->getSSARegMap()->getRegClass(VirtReg);