diff options
author | Dan Gohman <gohman@apple.com> | 2007-03-23 18:44:11 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-03-23 18:44:11 +0000 |
commit | 423c2260f95883f7c84ac962e58ac66c3a11efac (patch) | |
tree | a1fe402ee6cad918ac07120290cef96670d64a63 /include/llvm/CodeGen/MachineInstrBuilder.h | |
parent | b819a2b5fef660298b4f38ce951dd7f679f66b4f (diff) | |
download | llvm-423c2260f95883f7c84ac962e58ac66c3a11efac.tar.gz llvm-423c2260f95883f7c84ac962e58ac66c3a11efac.tar.bz2 llvm-423c2260f95883f7c84ac962e58ac66c3a11efac.tar.xz |
Add the 'explicit' keyword to several constructors that accept one
argument that don't appear intended as implicit-conversion operators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35280 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstrBuilder.h')
-rw-r--r-- | include/llvm/CodeGen/MachineInstrBuilder.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h index 1d65a4692f..eb45b6ec1f 100644 --- a/include/llvm/CodeGen/MachineInstrBuilder.h +++ b/include/llvm/CodeGen/MachineInstrBuilder.h @@ -27,7 +27,7 @@ class TargetInstrDescriptor; class MachineInstrBuilder { MachineInstr *MI; public: - MachineInstrBuilder(MachineInstr *mi) : MI(mi) {} + explicit MachineInstrBuilder(MachineInstr *mi) : MI(mi) {} /// Allow automatic conversion to the machine instruction we are working on. /// |