[llvm] 5cac0eb - [Support] Fix getTypeNameImpl on msvc (#119910)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 13 10:44:14 PST 2024
Author: Ian Wood
Date: 2024-12-13T10:44:11-08:00
New Revision: 5cac0eb4b4156ed7e2dae2a73af04484cf330ddb
URL: https://github.com/llvm/llvm-project/commit/5cac0eb4b4156ed7e2dae2a73af04484cf330ddb
DIFF: https://github.com/llvm/llvm-project/commit/5cac0eb4b4156ed7e2dae2a73af04484cf330ddb.diff
LOG: [Support] Fix getTypeNameImpl on msvc (#119910)
Updates `Key` to reflect the new name of the function enclosing
`__FUNCSIG__`.
Added:
Modified:
llvm/include/llvm/Support/TypeName.h
Removed:
################################################################################
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