aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-10 00:21:26 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-08-10 00:21:26 +0000
commitd6397eba2389e8a24d37aa56e049187c1ee75f4f (patch)
treeca2c932487d42c194121867f4960ce4f98f4a0ef /include
parent249d670dd0f6f151858195701df64fbd005615e7 (diff)
downloadexternal_llvm-d6397eba2389e8a24d37aa56e049187c1ee75f4f.zip
external_llvm-d6397eba2389e8a24d37aa56e049187c1ee75f4f.tar.gz
external_llvm-d6397eba2389e8a24d37aa56e049187c1ee75f4f.tar.bz2
Also update MRI use lists when changing a use to a def and vice versa.
This was the cause of the buildbot failures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineOperand.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/include/llvm/CodeGen/MachineOperand.h b/include/llvm/CodeGen/MachineOperand.h
index 0cde75d..e04e50a 100644
--- a/include/llvm/CodeGen/MachineOperand.h
+++ b/include/llvm/CodeGen/MachineOperand.h
@@ -331,17 +331,9 @@ public:
///
void substPhysReg(unsigned Reg, const TargetRegisterInfo&);
- void setIsUse(bool Val = true) {
- assert(isReg() && "Wrong MachineOperand accessor");
- assert((Val || !isDebug()) && "Marking a debug operation as def");
- IsDef = !Val;
- }
+ void setIsUse(bool Val = true) { setIsDef(!Val); }
- void setIsDef(bool Val = true) {
- assert(isReg() && "Wrong MachineOperand accessor");
- assert((!Val || !isDebug()) && "Marking a debug operation as def");
- IsDef = Val;
- }
+ void setIsDef(bool Val = true);
void setImplicit(bool Val = true) {
assert(isReg() && "Wrong MachineOperand accessor");