diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-30 17:37:43 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-30 17:37:43 +0000 |
commit | 15676ac89f4f0c3e10108f267ddad19149ad9cb5 (patch) | |
tree | f84ede60d01bb0b508d25d0b779101a5e28c1e09 /include/llvm | |
parent | 2eb314b33dec984dfccca0dfae46d5b211fa9c9f (diff) | |
download | external_llvm-15676ac89f4f0c3e10108f267ddad19149ad9cb5.zip external_llvm-15676ac89f4f0c3e10108f267ddad19149ad9cb5.tar.gz external_llvm-15676ac89f4f0c3e10108f267ddad19149ad9cb5.tar.bz2 |
Twines: Don't allow implicit conversion from integers, this is too tricky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77605 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/ADT/Twine.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/ADT/Twine.h b/include/llvm/ADT/Twine.h index 3022812..6c4905e 100644 --- a/include/llvm/ADT/Twine.h +++ b/include/llvm/ADT/Twine.h @@ -252,22 +252,22 @@ namespace llvm { } /// Construct a twine to print \arg Val as an unsigned decimal integer. - Twine(const uint32_t &Val) + explicit Twine(const uint32_t &Val) : LHS(&Val), LHSKind(UDec32Kind), RHSKind(EmptyKind) { } /// Construct a twine to print \arg Val as a signed decimal integer. - Twine(const int32_t &Val) + explicit Twine(const int32_t &Val) : LHS(&Val), LHSKind(SDec32Kind), RHSKind(EmptyKind) { } /// Construct a twine to print \arg Val as an unsigned decimal integer. - Twine(const uint64_t &Val) + explicit Twine(const uint64_t &Val) : LHS(&Val), LHSKind(UDec64Kind), RHSKind(EmptyKind) { } /// Construct a twine to print \arg Val as a signed decimal integer. - Twine(const int64_t &Val) + explicit Twine(const int64_t &Val) : LHS(&Val), LHSKind(SDec64Kind), RHSKind(EmptyKind) { } |