[llvm] [Support] Fix getTypeNameImpl on msvc (PR #119910)

via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 13 09:52:30 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-support

Author: Ian Wood (IanWood1)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/119910.diff


1 Files Affected:

- (modified) llvm/include/llvm/Support/TypeName.h (+1-1) 


``````````diff
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());

``````````

</details>


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


More information about the llvm-commits mailing list