summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-06-16 20:34:09 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-06-16 20:34:09 +0000
commit80d055494973e23dda00914c8f214e289831a341 (patch)
treef4d77fdd0308aefc82ff739d6cfe21500d923d1e /llvm
parentc00bd986950ec353674dbe3c33719406baa16e08 (diff)
downloadbcm5719-llvm-80d055494973e23dda00914c8f214e289831a341.tar.gz
bcm5719-llvm-80d055494973e23dda00914c8f214e289831a341.zip
MachineOperand::setIsDebug should ensure the register is /not/ a definition
This currently unused function appeared to be asserting in the wrong direction - DebugValues are never definitions of registers, only uses. Curiously we don't perform any of these checks for the more common (& actually used) case of MachineOperand::CreateReg (or other Create functions). llvm-svn: 184065
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/CodeGen/MachineOperand.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineOperand.h b/llvm/include/llvm/CodeGen/MachineOperand.h
index 414770b9ecf..57b28fecf86 100644
--- a/llvm/include/llvm/CodeGen/MachineOperand.h
+++ b/llvm/include/llvm/CodeGen/MachineOperand.h
@@ -391,7 +391,7 @@ public:
}
void setIsDebug(bool Val = true) {
- assert(isReg() && IsDef && "Wrong MachineOperand accessor");
+ assert(isReg() && !IsDef && "Wrong MachineOperand accessor");
IsDebug = Val;
}
OpenPOWER on IntegriCloud