diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp index 7d6c4dc0bfc..187b108048a 100644 --- a/lib/Support/APFloat.cpp +++ b/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 };