diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-10 00:21:26 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-10 00:21:26 +0000 |
commit | d6397eba2389e8a24d37aa56e049187c1ee75f4f (patch) | |
tree | ca2c932487d42c194121867f4960ce4f98f4a0ef /include | |
parent | 249d670dd0f6f151858195701df64fbd005615e7 (diff) | |
download | external_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.h | 12 |
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"); |