Skip to content

Commit 5cac0eb

Browse files
authored
[Support] Fix getTypeNameImpl on msvc (#119910)
Updates `Key` to reflect the new name of the function enclosing `__FUNCSIG__`.
1 parent 003eb5e commit 5cac0eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Support/TypeName.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ template <typename DesiredTypeName> inline StringRef getTypeNameImpl() {
2828
#elif defined(_MSC_VER)
2929
StringRef Name = __FUNCSIG__;
3030

31-
StringRef Key = "getTypeName<";
31+
StringRef Key = "getTypeNameImpl<";
3232
Name = Name.substr(Name.find(Key));
3333
assert(!Name.empty() && "Unable to find the function name!");
3434
Name = Name.drop_front(Key.size());

0 commit comments

Comments
 (0)