[llvm] [LLVM][Verifier] Move intrinsic signature verification to declarations (PR #204478)
Rahul Joshi via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 26 07:22:56 PDT 2026
================
@@ -5883,31 +5911,6 @@ void Verifier::visitInstruction(Instruction &I) {
/// Allow intrinsics to be verified in different ways.
void Verifier::visitIntrinsicCall(Intrinsic::ID ID, CallBase &Call) {
Function *IF = Call.getCalledFunction();
- Check(IF->isDeclaration(), "Intrinsic functions should never be defined!",
- IF);
----------------
jurahul wrote:
And we have a unit test as well for this.
https://github.com/llvm/llvm-project/pull/204478
More information about the llvm-commits
mailing list