From 6cf3e7d06706fe79e87d1816c92b074416b5f8f8 Mon Sep 17 00:00:00 2001 From: Sergei Barannikov Date: Wed, 14 Aug 2024 15:02:47 +0300 Subject: [DataLayout] Use member initialization (NFC) (#103712) This also adds a default constructor and a few uses of it. --- llvm/lib/IR/Module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/IR/Module.cpp') diff --git a/llvm/lib/IR/Module.cpp b/llvm/lib/IR/Module.cpp index 7ba5b27..704bc8d 100644 --- a/llvm/lib/IR/Module.cpp +++ b/llvm/lib/IR/Module.cpp @@ -73,7 +73,7 @@ template class llvm::SymbolTableListTraits; Module::Module(StringRef MID, LLVMContext &C) : Context(C), ValSymTab(std::make_unique(-1)), - ModuleID(std::string(MID)), SourceFileName(std::string(MID)), DL(""), + ModuleID(std::string(MID)), SourceFileName(std::string(MID)), IsNewDbgInfoFormat(UseNewDbgInfoFormat) { Context.addModule(this); } -- cgit v1.1