Apply clang-tidy fixes for modernize-use-emplace in BytecodeReader.cpp (NFC)

This commit is contained in:
Mehdi Amini committed 2022-08-30 00:10:45 +00:00
1 parent a48f910d7c
commit 35cf7e8b2f
1 file changed
+2 -2
+2 -2
View File
@@ -1025,7 +1025,7 @@ LogicalResult BytecodeReader::parseIRSection(ArrayRef<uint8_t> sectionData,
regionStack.back().curBlock = regionStack.back().curRegion->begin();
if (failed(parseBlock(reader, regionStack.back())))
return failure();
valueScopes.emplace_back(ValueScope());
valueScopes.emplace_back();
valueScopes.back().push(regionStack.back());
// Iteratively parse regions until everything has been resolved.
@@ -1083,7 +1083,7 @@ BytecodeReader::parseRegions(EncodingReader &reader,
// If the op is isolated from above, push a new value scope.
if (isIsolatedFromAbove)
valueScopes.emplace_back(ValueScope());
valueScopes.emplace_back();
return success();
}
}