summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-01-10 02:58:51 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-01-10 02:58:51 +0000
commit2fb5b3157826043df780cb52e7e3b773ce7fdd66 (patch)
tree0b931b906005e9d05ce16bf4d2c9c00fa01e5ac7 /llvm/lib/CodeGen/LiveDebugVariables.cpp
parent7bb282ebb11a053f4a2559280c17a2797008f5b8 (diff)
downloadbcm5719-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.cpp2
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);
}
OpenPOWER on IntegriCloud