@@ -690,14 +690,15 @@ TEST_F(ParseHLSLRootSignatureTest, ValidVersion10Test) {
690690 )
691691 )cc" ;
692692
693+ auto Ctx = createMinimalASTContext ();
694+ StringLiteral *Signature = wrapSource (Ctx, Source);
695+
693696 TrivialModuleLoader ModLoader;
694697 auto PP = createPP (Source, ModLoader);
695- auto TokLoc = SourceLocation ();
696698
697- hlsl::RootSignatureLexer Lexer (Source, TokLoc);
698699 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);
701702
702703 // Test no diagnostics produced
703704 Consumer->setNoDiag ();
@@ -762,14 +763,15 @@ TEST_F(ParseHLSLRootSignatureTest, ValidVersion11Test) {
762763 )
763764 )cc" ;
764765
766+ auto Ctx = createMinimalASTContext ();
767+ StringLiteral *Signature = wrapSource (Ctx, Source);
768+
765769 TrivialModuleLoader ModLoader;
766770 auto PP = createPP (Source, ModLoader);
767- auto TokLoc = SourceLocation ();
768771
769- hlsl::RootSignatureLexer Lexer (Source, TokLoc);
770772 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);
773775
774776 // Test no diagnostics produced
775777 Consumer->setNoDiag ();
0 commit comments