[llvm] r290345 - [WebAssembly] Add an "explicit" keyword to a constructor.
Dan Gohman via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 22 08:03:02 PST 2016
Author: djg
Date: Thu Dec 22 10:03:02 2016
New Revision: 290345
URL: http://llvm.org/viewvc/llvm-project?rev=290345&view=rev
Log:
[WebAssembly] Add an "explicit" keyword to a constructor.
Modified:
llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp?rev=290345&r1=290344&r2=290345&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCCodeEmitter.cpp Thu Dec 22 10:03:02 2016
@@ -46,7 +46,7 @@ class WebAssemblyMCCodeEmitter final : p
const MCSubtargetInfo &STI) const override;
public:
- WebAssemblyMCCodeEmitter(const MCInstrInfo &mcii) : MCII(mcii) {}
+ explicit WebAssemblyMCCodeEmitter(const MCInstrInfo &mcii) : MCII(mcii) {}
};
} // end anonymous namespace
More information about the llvm-commits
mailing list