[Mlir-commits] [mlir] 35cf7e8 - Apply clang-tidy fixes for modernize-use-emplace in BytecodeReader.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Mon Aug 29 17:11:27 PDT 2022


Author: Mehdi Amini
Date: 2022-08-30T00:10:45Z
New Revision: 35cf7e8b2f34d40b37fbfd7abcdb6fd67835b23d

URL: https://github.com/llvm/llvm-project/commit/35cf7e8b2f34d40b37fbfd7abcdb6fd67835b23d
DIFF: https://github.com/llvm/llvm-project/commit/35cf7e8b2f34d40b37fbfd7abcdb6fd67835b23d.diff

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

Added: 
    

Modified: 
    mlir/lib/Bytecode/Reader/BytecodeReader.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Bytecode/Reader/BytecodeReader.cpp b/mlir/lib/Bytecode/Reader/BytecodeReader.cpp
index 7343ec5f96882..26510a8d58c4a 100644
--- a/mlir/lib/Bytecode/Reader/BytecodeReader.cpp
+++ b/mlir/lib/Bytecode/Reader/BytecodeReader.cpp
@@ -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();
         }
       }


        


More information about the Mlir-commits mailing list