aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-09-13 06:15:57 +0000
committerChris Lattner <sabre@nondot.org>2007-09-13 06:15:57 +0000
commit8a901985bc599df9dfd2fca0b8dd0da4585df8a7 (patch)
treedc7cc5d33b77da6c213e4ba36955048e8f675238
parent3d6992fc7bfbd77e912044e7f15e324329d9b4eb (diff)
Make single-argument ctors explicit to avoid tricky bugs :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41924 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/ADT/APFloat.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h
index baa9de0257..b53f9fb377 100644
--- a/include/llvm/ADT/APFloat.h
+++ b/include/llvm/ADT/APFloat.h
@@ -168,9 +168,9 @@ namespace llvm {
APFloat(const fltSemantics &, const char *);
APFloat(const fltSemantics &, integerPart);
APFloat(const fltSemantics &, fltCategory, bool negative);
- APFloat(double d);
- APFloat(float f);
- APFloat(const APInt &);
+ explicit APFloat(double d);
+ explicit APFloat(float f);
+ explicit APFloat(const APInt &);
APFloat(const APFloat &);
~APFloat();