diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 0d64271199c..d10e63c66b7 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; }