[llvm] [Support] Fix getTypeNameImpl on msvc (PR #119910)
Ian Wood via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 13 09:51:58 PST 2024
https://github.com/IanWood1 created https://github.com/llvm/llvm-project/pull/119910
None
>From 3b092654aab4d82949e5134baa4dfbebd976a8a2 Mon Sep 17 00:00:00 2001
From: Ian Wood <ianwood2024 at u.northwestern.edu>
Date: Fri, 13 Dec 2024 21:48:00 -0800
Subject: [PATCH] Fix getTypeNameImpl on win
---
llvm/include/llvm/Support/TypeName.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/include/llvm/Support/TypeName.h b/llvm/include/llvm/Support/TypeName.h
index 61ba09c2163047..baa7a691302e3c 100644
--- a/llvm/include/llvm/Support/TypeName.h
+++ b/llvm/include/llvm/Support/TypeName.h
@@ -28,7 +28,7 @@ template <typename DesiredTypeName> inline StringRef getTypeNameImpl() {
#elif defined(_MSC_VER)
StringRef Name = __FUNCSIG__;
- StringRef Key = "getTypeName<";
+ StringRef Key = "getTypeNameImpl<";
Name = Name.substr(Name.find(Key));
assert(!Name.empty() && "Unable to find the function name!");
Name = Name.drop_front(Key.size());
More information about the llvm-commits
mailing list