[llvm] 7cc4d44 - [BitcodeReader] Remove unnecessary argument defaults (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 15 04:24:21 PDT 2022


Author: Nikita Popov
Date: 2022-06-15T13:24:13+02:00
New Revision: 7cc4d4497ced700d906951fe1875e5d1e4d95810

URL: https://github.com/llvm/llvm-project/commit/7cc4d4497ced700d906951fe1875e5d1e4d95810
DIFF: https://github.com/llvm/llvm-project/commit/7cc4d4497ced700d906951fe1875e5d1e4d95810.diff

LOG: [BitcodeReader] Remove unnecessary argument defaults (NFC)

This is an internal method that is always called with all arguments.

Added: 
    

Modified: 
    llvm/lib/Bitcode/Reader/BitcodeReader.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 263ffc87c0bd2..6a7cd68d5a2fe 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -596,8 +596,8 @@ class BitcodeReader : public BitcodeReaderBase, public GVMaterializer {
   /// Main interface to parsing a bitcode buffer.
   /// \returns true if an error occurred.
   Error parseBitcodeInto(
-      Module *M, bool ShouldLazyLoadMetadata = false, bool IsImporting = false,
-      DataLayoutCallbackTy DataLayoutCallback = [](StringRef) { return None; });
+      Module *M, bool ShouldLazyLoadMetadata, bool IsImporting,
+      DataLayoutCallbackTy DataLayoutCallback);
 
   static uint64_t decodeSignRotatedValue(uint64_t V);
 


        


More information about the llvm-commits mailing list