[llvm-branch-commits] [llvm] [DirectX] Improve error handling and validation in root signature parsing (PR #144577)

Chris B via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Jul 11 11:40:22 PDT 2025


================
@@ -48,6 +48,71 @@ static bool reportValueError(LLVMContext *Ctx, Twine ParamName,
   return true;
 }
 
+// Template function to get formatted type string based on C++ type
+template <typename T> std::string getTypeFormatted() {
----------------
llvm-beanz wrote:

Looks like this could be a StringRef.
```suggestion
template <typename T> StringRef getTypeFormatted() {
```

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


More information about the llvm-branch-commits mailing list