summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-01-08 18:31:13 +0000
committerSanjay Patel <spatel@rotateright.com>2018-01-08 18:31:13 +0000
commit7dfe96ad16734766bc061224a56b576fdea0af17 (patch)
tree0e99acfb51d1aaa6a5bb8ae0afbaa90480e48461 /llvm/lib
parente9500ba745b76adf0c35d31b3d4fb21af151383c (diff)
downloadbcm5719-llvm-7dfe96ad16734766bc061224a56b576fdea0af17.tar.gz
bcm5719-llvm-7dfe96ad16734766bc061224a56b576fdea0af17.zip
[ValueTracking] remove overzealous assert
The test is derived from a failing fuzz test: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5008 Credit to @rksimon for pointing out the problem. llvm-svn: 322016
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index a0032f99ec2..b8f6066bf05 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -4214,7 +4214,7 @@ static SelectPatternResult matchMinMaxOfMinMax(CmpInst::Predicate Pred,
break;
return {SPF_UNKNOWN, SPNB_NA, false};
default:
- llvm_unreachable("Bad flavor while matching min/max");
+ return {SPF_UNKNOWN, SPNB_NA, false};
}
// a pred c ? m(a, b) : m(c, b) --> m(m(a, b), m(c, b))
OpenPOWER on IntegriCloud