summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-08-23 17:45:53 +0000
committerCraig Topper <craig.topper@intel.com>2018-08-23 17:45:53 +0000
commitdfa176e813e6ac69b9fc8530ef25637be7a0ba15 (patch)
treebd8182d90e42872748210e109ec143f417da3262 /llvm/lib
parentab038025a50c79a89edb5832b163e8c729ceb703 (diff)
downloadbcm5719-llvm-dfa176e813e6ac69b9fc8530ef25637be7a0ba15.tar.gz
bcm5719-llvm-dfa176e813e6ac69b9fc8530ef25637be7a0ba15.zip
[ValueTracking] Fix assert message and add test case for r340546 and PR38677.
The bug was already fixed. This just adds a test case for it. llvm-svn: 340556
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 d2844d80c51..a207a5064db 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -2215,7 +2215,7 @@ static bool isSignedMinMaxClamp(const Value *Select, const Value *&In,
const APInt *&CLow, const APInt *&CHigh) {
assert(isa<Operator>(Select) &&
cast<Operator>(Select)->getOpcode() == Instruction::Select &&
- "Input should be a SelectInst!");
+ "Input should be a Select!");
const Value *LHS, *RHS, *LHS2, *RHS2;
SelectPatternFlavor SPF = matchSelectPattern(Select, LHS, RHS).Flavor;
OpenPOWER on IntegriCloud