summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-05-12 16:38:14 +0000
committerDan Gohman <gohman@apple.com>2008-05-12 16:38:14 +0000
commit02e5933fa34d3f010e732cca1f01f3237456421e (patch)
treed96934d2fe0803771ce2ab2d72f96b54d4e0d602
parente9bc2ba256e664fbcc18c9174f70d97eed668bb6 (diff)
downloadbcm5719-llvm-02e5933fa34d3f010e732cca1f01f3237456421e.tar.gz
bcm5719-llvm-02e5933fa34d3f010e732cca1f01f3237456421e.zip
Make firstEightPowers const.
llvm-svn: 50975
-rw-r--r--llvm/lib/Support/APFloat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp
index 7d6c4dc0bfc..187b108048a 100644
--- a/llvm/lib/Support/APFloat.cpp
+++ b/llvm/lib/Support/APFloat.cpp
@@ -438,8 +438,8 @@ namespace {
static unsigned int
powerOf5(integerPart *dst, unsigned int power)
{
- static integerPart firstEightPowers[] = { 1, 5, 25, 125, 625, 3125,
- 15625, 78125 };
+ static const integerPart firstEightPowers[] = { 1, 5, 25, 125, 625, 3125,
+ 15625, 78125 };
static integerPart pow5s[maxPowerOfFiveParts * 2 + 5] = { 78125 * 5 };
static unsigned int partsCount[16] = { 1 };
OpenPOWER on IntegriCloud