summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2018-04-06 10:20:19 +0000
committerHans Wennborg <hans@hanshq.net>2018-04-06 10:20:19 +0000
commitda8b71f292976eb64cb5a07d0ba8b5960cc3a973 (patch)
tree4514a5190b1695c16880a4b0a739ea016d45cb0d
parentfd1f4fe54edec7932cac9603faace6057fcc998e (diff)
downloadbcm5719-llvm-da8b71f292976eb64cb5a07d0ba8b5960cc3a973.tar.gz
bcm5719-llvm-da8b71f292976eb64cb5a07d0ba8b5960cc3a973.zip
Tweak an assert message in the verifier
llvm-svn: 329387
-rw-r--r--llvm/lib/IR/Verifier.cpp2
-rw-r--r--llvm/test/Verifier/musttail-invalid.ll2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index cd24915cd48..6864608142b 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -2916,7 +2916,7 @@ void Verifier::verifyMustTailCall(CallInst &CI) {
// Check the return.
ReturnInst *Ret = dyn_cast_or_null<ReturnInst>(Next);
- Assert(Ret, "musttail call must be precede a ret with an optional bitcast",
+ Assert(Ret, "musttail call must precede a ret with an optional bitcast",
&CI);
Assert(!Ret->getReturnValue() || Ret->getReturnValue() == RetVal,
"musttail call result must be returned", Ret);
diff --git a/llvm/test/Verifier/musttail-invalid.ll b/llvm/test/Verifier/musttail-invalid.ll
index 78017db6e66..041d3a481cf 100644
--- a/llvm/test/Verifier/musttail-invalid.ll
+++ b/llvm/test/Verifier/musttail-invalid.ll
@@ -69,7 +69,7 @@ define void @mismatched_alignment(i32* byval align 4 %a) {
declare i32 @not_tail_pos_callee()
define i32 @not_tail_pos() {
-; CHECK: musttail call must be precede a ret with an optional bitcast
+; CHECK: musttail call must precede a ret with an optional bitcast
%v = musttail call i32 @not_tail_pos_callee()
%w = add i32 %v, 1
ret i32 %w
OpenPOWER on IntegriCloud