summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2016-04-17 01:34:32 +0000
committerCraig Topper <craig.topper@gmail.com>2016-04-17 01:34:32 +0000
commit28336ed3bbcfdc5342bd619f63e37067b227c397 (patch)
treedefd910a18bfc651f369547a70908a76ffa25c33
parent90990cd9e4d0142bfe0247f4800ac97ab599c54e (diff)
downloadbcm5719-llvm-28336ed3bbcfdc5342bd619f63e37067b227c397.tar.gz
bcm5719-llvm-28336ed3bbcfdc5342bd619f63e37067b227c397.zip
[Target] Fix an assertion that should have been updated when the code below it was changed in r251033.
llvm-svn: 266545
-rw-r--r--llvm/include/llvm/Target/TargetLowering.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Target/TargetLowering.h b/llvm/include/llvm/Target/TargetLowering.h
index 4ec80a5a3eb..71bef19cd85 100644
--- a/llvm/include/llvm/Target/TargetLowering.h
+++ b/llvm/include/llvm/Target/TargetLowering.h
@@ -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);
OpenPOWER on IntegriCloud