[lld] [llvm] [LLD][COFF] Fix handling of invalid ARM64EC function names (PR #116252)

Daniel Paoliello via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 14 09:54:56 PST 2024


================
@@ -669,8 +669,11 @@ bool checkLazyECPair(SymbolTable *symtab, StringRef name, InputFile *f) {
   if (std::optional<std::string> mangledName =
           getArm64ECMangledFunctionName(name))
     pairName = std::move(*mangledName);
+  else if (std::optional<std::string> demangledName =
+               getArm64ECDemangledFunctionName(name))
+    pairName = std::move(*demangledName);
   else
-    pairName = *getArm64ECDemangledFunctionName(name);
+    return true;
----------------
dpaoliello wrote:

What's the effect of returning true here?

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


More information about the llvm-commits mailing list