[llvm] r266545 - [Target] Fix an assertion that should have been updated when the code below it was changed in r251033.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 16 18:34:32 PDT 2016
Author: ctopper
Date: Sat Apr 16 20:34:32 2016
New Revision: 266545
URL: http://llvm.org/viewvc/llvm-project?rev=266545&view=rev
Log:
[Target] Fix an assertion that should have been updated when the code below it was changed in r251033.
Modified:
llvm/trunk/include/llvm/Target/TargetLowering.h
Modified: llvm/trunk/include/llvm/Target/TargetLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetLowering.h?rev=266545&r1=266544&r2=266545&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetLowering.h (original)
+++ llvm/trunk/include/llvm/Target/TargetLowering.h Sat Apr 16 20:34:32 2016
@@ -689,7 +689,7 @@ public:
LegalizeAction
getCondCodeAction(ISD::CondCode CC, MVT VT) const {
assert((unsigned)CC < array_lengthof(CondCodeActions) &&
- ((unsigned)VT.SimpleTy >> 4) < array_lengthof(CondCodeActions[0]) &&
+ ((unsigned)VT.SimpleTy >> 3) < array_lengthof(CondCodeActions[0]) &&
"Table isn't big enough!");
// See setCondCodeAction for how this is encoded.
uint32_t Shift = 4 * (VT.SimpleTy & 0x7);
More information about the llvm-commits
mailing list