aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-01-03 11:28:47 -0800
committerKazu Hirata <kazu@google.com>2022-01-03 11:28:47 -0800
commite5947760c2e568c2090841a452aa8469cc66f6c8 (patch)
tree36d5c14adc7028fc309f0bd84a3b1da85877a749 /llvm/lib/IR/Module.cpp
parentdb77f7a074d70f0092ba0870ad0ce42417095348 (diff)
downloadllvm-e5947760c2e568c2090841a452aa8469cc66f6c8.zip
llvm-e5947760c2e568c2090841a452aa8469cc66f6c8.tar.gz
llvm-e5947760c2e568c2090841a452aa8469cc66f6c8.tar.bz2
Revert "[llvm] Remove redundant member initialization (NFC)"
This reverts commit fd4808887ee47f3ec8a030e9211169ef4fb094c3. This patch causes gcc to issue a lot of warnings like: warning: base class ‘class llvm::MCParsedAsmOperand’ should be explicitly initialized in the copy constructor [-Wextra]
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
-rw-r--r--llvm/lib/IR/Module.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/IR/Module.cpp b/llvm/lib/IR/Module.cpp
index b3b4b8a..a0485a5 100644
--- a/llvm/lib/IR/Module.cpp
+++ b/llvm/lib/IR/Module.cpp
@@ -73,7 +73,8 @@ template class llvm::SymbolTableListTraits<GlobalIFunc>;
Module::Module(StringRef MID, LLVMContext &C)
: Context(C), ValSymTab(std::make_unique<ValueSymbolTable>(-1)),
- ModuleID(std::string(MID)), SourceFileName(std::string(MID)), DL("") {
+ Materializer(), ModuleID(std::string(MID)),
+ SourceFileName(std::string(MID)), DL("") {
Context.addModule(this);
}