diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-09-01 22:34:52 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-09-01 22:34:52 +0000 |
commit | 2e58a410896ffbee3d856b113c3718bc4a5462e8 (patch) | |
tree | 31adf081afb0482858b923aec5e2b5fd9e219144 /lib/CodeGen | |
parent | 790306852cbb3817168135cbc069aa3e2bca1d0d (diff) | |
download | external_llvm-2e58a410896ffbee3d856b113c3718bc4a5462e8.zip external_llvm-2e58a410896ffbee3d856b113c3718bc4a5462e8.tar.gz external_llvm-2e58a410896ffbee3d856b113c3718bc4a5462e8.tar.bz2 |
Give a better assertion if we see a use before a def.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16135 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/LiveVariables.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveVariables.cpp b/lib/CodeGen/LiveVariables.cpp index f6d00f7..630477d 100644 --- a/lib/CodeGen/LiveVariables.cpp +++ b/lib/CodeGen/LiveVariables.cpp @@ -82,6 +82,8 @@ void LiveVariables::MarkVirtRegAliveInBlock(VarInfo &VRInfo, void LiveVariables::HandleVirtRegUse(VarInfo &VRInfo, MachineBasicBlock *MBB, MachineInstr *MI) { + assert(VRInfo.DefInst && "Register use before def!"); + // Check to see if this basic block is already a kill block... if (!VRInfo.Kills.empty() && VRInfo.Kills.back()->getParent() == MBB) { // Yes, this register is killed in this basic block already. Increase the |