diff options
author | George Burgess IV <george.burgess.iv@gmail.com> | 2016-08-25 01:05:08 +0000 |
---|---|---|
committer | George Burgess IV <george.burgess.iv@gmail.com> | 2016-08-25 01:05:08 +0000 |
commit | 381fc0ee3ce32583786aae1619b97cc28865015d (patch) | |
tree | 626593774835564c112e5edaa1f783a6d5cbb64b /llvm/lib/Support/APInt.cpp | |
parent | 1804a77b2a70dea81cc21b171febcc9df9cc1274 (diff) | |
download | bcm5719-llvm-381fc0ee3ce32583786aae1619b97cc28865015d.tar.gz bcm5719-llvm-381fc0ee3ce32583786aae1619b97cc28865015d.zip |
Make some LLVM_CONSTEXPR variables const. NFC.
This patch changes LLVM_CONSTEXPR variable declarations to const
variable declarations, since LLVM_CONSTEXPR expands to nothing if the
current compiler doesn't support constexpr. In all of the changed
cases, it looks like the code intended the variable to be const instead
of sometimes-constexpr sometimes-not.
llvm-svn: 279696
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r-- | llvm/lib/Support/APInt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index 31ffffcf603..318ce10ceaf 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/lib/Support/APInt.cpp @@ -1495,7 +1495,7 @@ static void KnuthDiv(unsigned *u, unsigned *v, unsigned *q, unsigned* r, assert(n>1 && "n must be > 1"); // b denotes the base of the number system. In our case b is 2^32. - LLVM_CONSTEXPR uint64_t b = uint64_t(1) << 32; + const uint64_t b = uint64_t(1) << 32; DEBUG(dbgs() << "KnuthDiv: m=" << m << " n=" << n << '\n'); DEBUG(dbgs() << "KnuthDiv: original:"); |