Skip to content

Commit b44e8a8

Browse files
committed
rebase onto updated lex/parser prs
- we can now pass down the diagnostics for reporting - update the namespace
1 parent 18c0f31 commit b44e8a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ void SemaHLSL::emitLogicalOperatorFixIt(Expr *LHS, Expr *RHS,
650650

651651
void SemaHLSL::handleRootSignatureAttr(Decl *D, const ParsedAttr &AL) {
652652
using namespace llvm::hlsl::root_signature;
653+
using namespace clang::hlsl;
653654

654655
if (AL.getNumArgs() != 1)
655656
return;
@@ -667,7 +668,8 @@ void SemaHLSL::handleRootSignatureAttr(Decl *D, const ParsedAttr &AL) {
667668
return;
668669

669670
SmallVector<RootElement> Elements;
670-
RootSignatureParser Parser(Elements, Tokens);
671+
RootSignatureParser Parser(Elements, Tokens,
672+
SemaRef.getPreprocessor().getDiagnostics());
671673
if (Parser.Parse())
672674
return;
673675

0 commit comments

Comments
 (0)