[clang] Implement resource binding type prefix mismatch errors (PR #87578)
Justin Bogner via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 10 09:28:14 PDT 2024
================
@@ -7333,12 +7333,12 @@ static void handleHLSLResourceBindingAttr(Sema &S, Decl *D,
} else {
Slot = Str;
}
-
+ QualType Ty = ((clang::ValueDecl *)D)->getType();
----------------
bogner wrote:
LLVM avoids C-style casting. This would normally be spelled `QualType QT = cast<ValueDecl>(D)->getType();`. In any case, this variable doesn't look like it's used.
https://github.com/llvm/llvm-project/pull/87578
More information about the cfe-commits
mailing list