[llvm] r254473 - Use default member initializers.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 1 15:06:27 PST 2015
Author: rafael
Date: Tue Dec 1 17:06:26 2015
New Revision: 254473
URL: http://llvm.org/viewvc/llvm-project?rev=254473&view=rev
Log:
Use default member initializers.
Modified:
llvm/trunk/lib/Linker/LinkModules.cpp
Modified: llvm/trunk/lib/Linker/LinkModules.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Linker/LinkModules.cpp?rev=254473&r1=254472&r2=254473&view=diff
==============================================================================
--- llvm/trunk/lib/Linker/LinkModules.cpp (original)
+++ llvm/trunk/lib/Linker/LinkModules.cpp Tue Dec 1 17:06:26 2015
@@ -412,12 +412,12 @@ class ModuleLinker {
/// from this source module, in which case we must conservatively assume
/// that any of its functions may be imported into another module
/// as part of a different backend compilation process.
- bool HasExportedFunctions;
+ bool HasExportedFunctions = false;
/// Set to true when all global value body linking is complete (including
/// lazy linking). Used to prevent metadata linking from creating new
/// references.
- bool DoneLinkingBodies;
+ bool DoneLinkingBodies = false;
bool HasError = false;
@@ -428,8 +428,7 @@ public:
Function *FuncToImport = nullptr)
: DstM(DstM), SrcM(SrcM), TypeMap(Set), ValMaterializer(this),
DiagnosticHandler(DiagnosticHandler), Flags(Flags), ImportIndex(Index),
- ImportFunction(FuncToImport), HasExportedFunctions(false),
- DoneLinkingBodies(false) {
+ ImportFunction(FuncToImport) {
assert((ImportIndex || !ImportFunction) &&
"Expect a FunctionInfoIndex when importing");
// If we have a FunctionInfoIndex but no function to import,
More information about the llvm-commits
mailing list