diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-01-10 02:58:51 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-01-10 02:58:51 +0000 |
| commit | 2fb5b3157826043df780cb52e7e3b773ce7fdd66 (patch) | |
| tree | 0b931b906005e9d05ce16bf4d2c9c00fa01e5ac7 /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
| parent | 7bb282ebb11a053f4a2559280c17a2797008f5b8 (diff) | |
| download | bcm5719-llvm-2fb5b3157826043df780cb52e7e3b773ce7fdd66.tar.gz bcm5719-llvm-2fb5b3157826043df780cb52e7e3b773ce7fdd66.zip | |
Simplify a bunch of isVirtualRegister() and isPhysicalRegister() logic.
These functions not longer assert when passed 0, but simply return false instead.
No functional change intended.
llvm-svn: 123155
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LiveDebugVariables.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp index ac95e730643..da4b017cdca 100644 --- a/llvm/lib/CodeGen/LiveDebugVariables.cpp +++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp @@ -359,7 +359,7 @@ bool LDVImpl::handleDebugValue(MachineInstr *MI, SlotIndex Idx) { // If the location is a virtual register, make sure it is mapped. if (MI->getOperand(0).isReg()) { unsigned Reg = MI->getOperand(0).getReg(); - if (Reg && TargetRegisterInfo::isVirtualRegister(Reg)) + if (TargetRegisterInfo::isVirtualRegister(Reg)) mapVirtReg(Reg, UV); } |

