[llvm] [CGProfile] Fix unhandled error crash on empty canonical function names (PR #201821)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 3 22:56:08 PDT 2026


================
@@ -0,0 +1,10 @@
+; RUN: opt < %s -passes='cg-profile' -S | FileCheck %s
+
+; A function whose entire name is a strippable suffix (e.g. ".llvm.123")
+; canonicalizes to an empty name. Building the InstrProfSymtab
+; for such a name returns an error that cg-profile intentionally ignores.
----------------
snehasish wrote:

No longer returns an error?

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


More information about the llvm-commits mailing list