summaryrefslogtreecommitdiff
path: root/include/llvm/Support/ScaledNumber.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-12-18 20:10:56 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-12-18 20:10:56 +0000
commit044eb2f6afba375a914ac9d8024f8f5142bb912e (patch)
tree1475247dc9f9fe5be155ebd4c9069c75aadf8c20 /include/llvm/Support/ScaledNumber.h
parenteb70dddbd77e120e5d490bd8fbe7ff3f8fa81c6b (diff)
Notes
Diffstat (limited to 'include/llvm/Support/ScaledNumber.h')
-rw-r--r--include/llvm/Support/ScaledNumber.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Support/ScaledNumber.h b/include/llvm/Support/ScaledNumber.h
index 910174732994c..cfbdbc7516178 100644
--- a/include/llvm/Support/ScaledNumber.h
+++ b/include/llvm/Support/ScaledNumber.h
@@ -504,13 +504,13 @@ private:
static_assert(Width <= 64, "invalid integer width for digits");
private:
- DigitsType Digits;
- int16_t Scale;
+ DigitsType Digits = 0;
+ int16_t Scale = 0;
public:
- ScaledNumber() : Digits(0), Scale(0) {}
+ ScaledNumber() = default;
- ScaledNumber(DigitsType Digits, int16_t Scale)
+ constexpr ScaledNumber(DigitsType Digits, int16_t Scale)
: Digits(Digits), Scale(Scale) {}
private: