File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -5267,20 +5267,13 @@ void Parser::ParseMicrosoftRootSignatureAttributeArgs(ParsedAttributes &Attrs) {
5267
5267
1 ); // offset 1 for '"'
5268
5268
// Invoke the root signature parser to construct the in-memory constructs
5269
5269
hlsl::RootSignatureLexer Lexer (Signature, SignatureLoc);
5270
- SmallVector<llvm::hlsl::rootsig::RootElement> Elements ;
5271
- hlsl::RootSignatureParser Parser (Elements , Lexer, PP);
5270
+ SmallVector<llvm::hlsl::rootsig::RootElement> RootElements ;
5271
+ hlsl::RootSignatureParser Parser (RootElements , Lexer, PP);
5272
5272
if (Parser.parse ()) {
5273
5273
T.consumeClose ();
5274
5274
return ;
5275
5275
}
5276
5276
5277
- // Allocate the root elements onto ASTContext
5278
- unsigned N = Elements.size ();
5279
- auto RootElements = MutableArrayRef<llvm::hlsl::rootsig::RootElement>(
5280
- ::new (Actions.getASTContext ()) llvm::hlsl::rootsig::RootElement[N], N);
5281
- for (unsigned I = 0 ; I < N; ++I)
5282
- RootElements[I] = Elements[I];
5283
-
5284
5277
// Create the Root Signature
5285
5278
auto *SignatureDecl = HLSLRootSignatureDecl::Create (
5286
5279
Actions.getASTContext (), /* DeclContext=*/ Actions.CurContext ,
You can’t perform that action at this time.
0 commit comments