From: Chris Lattner Date: Mon, 30 Jan 2006 06:09:03 +0000 (+0000) Subject: Clear the OpAction field before setting it. This allows a target to set X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=cb0b5556630aec89231e3e656ed4f1357cf1bb61;p=oota-llvm.git 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 --- 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; }