Skip to content

Commit cac95d1

Browse files
committed
rebase onto unique_ptr change
1 parent 5efadf0 commit cac95d1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/unittests/Parse/ParseHLSLRootSignatureTest.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ TEST_F(ParseHLSLRootSignatureTest, ParseValidDTClausesTest) {
147147
)cc";
148148

149149
TrivialModuleLoader ModLoader;
150-
Preprocessor *PP = CreatePP(Source, ModLoader);
150+
auto PP = CreatePP(Source, ModLoader);
151151
auto TokLoc = SourceLocation();
152152

153153
RootSignatureLexer Lexer(Source, TokLoc, *PP);
@@ -218,8 +218,6 @@ TEST_F(ParseHLSLRootSignatureTest, ParseValidDTClausesTest) {
218218
ASSERT_EQ(Elem.Tag, RootElement::ElementType::DescriptorTable);
219219
ASSERT_EQ(Elem.Table.NumClauses, (uint32_t)0);
220220
ASSERT_EQ(Elem.Table.Visibility, ShaderVisibility::All);
221-
222-
delete PP;
223221
}
224222

225223
} // anonymous namespace

0 commit comments

Comments
 (0)