[PATCH] D96447: [NFC][Coroutine] Fix an error message on coro.id verification
Xun Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 10 12:52:19 PST 2021
lxfind created this revision.
Herald added subscribers: hoy, dexonsmith, modimo, wenlei, hiraditya.
lxfind requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The error message should be about coro.id, not coro.begin
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D96447
Files:
llvm/lib/IR/Verifier.cpp
Index: llvm/lib/IR/Verifier.cpp
===================================================================
--- llvm/lib/IR/Verifier.cpp
+++ llvm/lib/IR/Verifier.cpp
@@ -4588,12 +4588,12 @@
break;
auto *GV = dyn_cast<GlobalVariable>(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<ConstantStruct>(Init) || isa<ConstantArray>(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) \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96447.322800.patch
Type: text/x-patch
Size: 917 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210210/6b617ada/attachment.bin>
More information about the llvm-commits
mailing list