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
This commit is contained in:
Chris Lattner 2006-01-30 06:09:03 +00:00
parent 5295de7c41
commit cb0b555663

View File

@ -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;
}