[llvm] [LLVM][Verifier] Improve diagnostic messages for Intrinsics in Verifier (PR #185641)

Durgadoss R via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 22 05:04:28 PDT 2026


================
@@ -354,7 +354,17 @@ bool LLParser::validateEndOfModule(bool UpgradeDebugInfo) {
           if (!UpgradeIntrinsicFunction(TmpF, NewF)) {
             if (IID == Intrinsic::not_intrinsic)
               return error(Info.second, "unknown intrinsic '" + Name + "'");
-            return error(Info.second, "invalid intrinsic signature");
+            FunctionType *ExpFTy = nullptr;
+            if (!Intrinsic::isOverloaded(IID))
----------------
durga4github wrote:

We can add a TODO here about the support for overloaded versions.

https://github.com/llvm/llvm-project/pull/185641


More information about the llvm-commits mailing list