[llvm] [HLSL] Diagnose overlapping resource bindings (PR #140982)
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Thu May 29 13:59:40 PDT 2025
================
@@ -50,15 +51,55 @@ static void reportInvalidDirection(Module &M, DXILResourceMap &DRM) {
}
}
-} // namespace
+static void reportOverlappingError(Module &M, ResourceInfo R1,
+ ResourceInfo R2) {
+ SmallString<64> Message;
----------------
bogner wrote:
64 isn't large enough - even if the names are a single character each this message is 72 characters long, so this is always heap allocated. If we use 128 then even names of 20ish characters should fit in the small size.
https://github.com/llvm/llvm-project/pull/140982
More information about the llvm-commits
mailing list