aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-30 06:09:03 +0000
committerChris Lattner <sabre@nondot.org>2006-01-30 06:09:03 +0000
commitcb0b5556630aec89231e3e656ed4f1357cf1bb61 (patch)
treebb8ddaf38f29d0fc392cc9b9456529b37fec6c76
parent5295de7c41058e7e89cbdc255f86e8c623566f5a (diff)
Clear the OpAction field before setting it. This allows a target to set
an instruction operation action to Expand, then set it to Legal later. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25812 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetLowering.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index 0d64271199..d10e63c66b 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -368,6 +368,7 @@ protected:
LegalizeAction Action) {
assert(VT < 32 && Op < sizeof(OpActions)/sizeof(OpActions[0]) &&
"Table isn't big enough!");
+ OpActions[Op] &= ~(3ULL << VT*2);
OpActions[Op] |= Action << VT*2;
}