@@ -690,14 +690,15 @@ TEST_F(ParseHLSLRootSignatureTest, ValidVersion10Test) {
690
690
)
691
691
)cc" ;
692
692
693
+ auto Ctx = createMinimalASTContext ();
694
+ StringLiteral *Signature = wrapSource (Ctx, Source);
695
+
693
696
TrivialModuleLoader ModLoader;
694
697
auto PP = createPP (Source, ModLoader);
695
- auto TokLoc = SourceLocation ();
696
698
697
- hlsl::RootSignatureLexer Lexer (Source, TokLoc);
698
699
SmallVector<RootElement> Elements;
699
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_0, Elements, Lexer,
700
- *PP);
700
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_0, Elements,
701
+ Signature, *PP);
701
702
702
703
// Test no diagnostics produced
703
704
Consumer->setNoDiag ();
@@ -762,14 +763,15 @@ TEST_F(ParseHLSLRootSignatureTest, ValidVersion11Test) {
762
763
)
763
764
)cc" ;
764
765
766
+ auto Ctx = createMinimalASTContext ();
767
+ StringLiteral *Signature = wrapSource (Ctx, Source);
768
+
765
769
TrivialModuleLoader ModLoader;
766
770
auto PP = createPP (Source, ModLoader);
767
- auto TokLoc = SourceLocation ();
768
771
769
- hlsl::RootSignatureLexer Lexer (Source, TokLoc);
770
772
SmallVector<RootElement> Elements;
771
- hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements, Lexer,
772
- *PP);
773
+ hlsl::RootSignatureParser Parser (RootSignatureVersion::V1_1, Elements,
774
+ Signature, *PP);
773
775
774
776
// Test no diagnostics produced
775
777
Consumer->setNoDiag ();
0 commit comments