Skip to content

Commit 9436edf

Browse files
committed
review: use emplace_back
1 parent c576a4c commit 9436edf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Parse/ParseHLSLRootSignature.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ std::optional<DescriptorTable> RootSignatureParser::parseDescriptorTable() {
254254
auto Clause = parseDescriptorTableClause();
255255
if (!Clause.has_value())
256256
return std::nullopt;
257-
Elements.push_back(RootSignatureElement(ElementLoc, *Clause));
257+
Elements.emplace_back(RootSignatureElement(ElementLoc, *Clause));
258258
Table.NumClauses++;
259259
} else if (tryConsumeExpectedToken(TokenKind::kw_visibility)) {
260260
// visibility = SHADER_VISIBILITY

0 commit comments

Comments
 (0)