[llvm] r329387 - Tweak an assert message in the verifier

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 6 03:20:19 PDT 2018


Author: hans
Date: Fri Apr  6 03:20:19 2018
New Revision: 329387

URL: http://llvm.org/viewvc/llvm-project?rev=329387&view=rev
Log:
Tweak an assert message in the verifier

Modified:
    llvm/trunk/lib/IR/Verifier.cpp
    llvm/trunk/test/Verifier/musttail-invalid.ll

Modified: llvm/trunk/lib/IR/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Verifier.cpp?rev=329387&r1=329386&r2=329387&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Verifier.cpp (original)
+++ llvm/trunk/lib/IR/Verifier.cpp Fri Apr  6 03:20:19 2018
@@ -2916,7 +2916,7 @@ void Verifier::verifyMustTailCall(CallIn
 
   // 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);

Modified: llvm/trunk/test/Verifier/musttail-invalid.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Verifier/musttail-invalid.ll?rev=329387&r1=329386&r2=329387&view=diff
==============================================================================
--- llvm/trunk/test/Verifier/musttail-invalid.ll (original)
+++ llvm/trunk/test/Verifier/musttail-invalid.ll Fri Apr  6 03:20:19 2018
@@ -69,7 +69,7 @@ define void @mismatched_alignment(i32* b
 
 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




More information about the llvm-commits mailing list