From: Xun Li Date: Fri, 12 Feb 2021 18:43:08 +0000 (-0800) Subject: [NFC][Coroutine] Fix an error message on coro.id verification X-Git-Tag: llvmorg-14-init~15239 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0d09ce4600ba14e59129a4cbca10212a1d9dc82;p=platform%2Fupstream%2Fllvm.git [NFC][Coroutine] Fix an error message on coro.id verification The error message should be about coro.id, not coro.begin Differential Revision: https://reviews.llvm.org/D96447 --- diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index 62ec095..6027cf8 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -4593,12 +4593,12 @@ void Verifier::visitIntrinsicCall(Intrinsic::ID ID, CallBase &Call) { break; auto *GV = dyn_cast(InfoArg); Assert(GV && GV->isConstant() && GV->hasDefinitiveInitializer(), - "info argument of llvm.coro.begin must refer to an initialized " - "constant"); + "info argument of llvm.coro.id must refer to an initialized " + "constant"); Constant *Init = GV->getInitializer(); Assert(isa(Init) || isa(Init), - "info argument of llvm.coro.begin must refer to either a struct or " - "an array"); + "info argument of llvm.coro.id must refer to either a struct or " + "an array"); break; } #define INSTRUCTION(NAME, NARGS, ROUND_MODE, INTRINSIC) \