aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/APInt.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-01 17:47:31 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-01 17:47:31 +0000
commit4e1e87f09ce284ef9e981d86a72fde2f99c70c10 (patch)
tree0be26c164c14610f90098d7eb2367c19812e1b48 /lib/Support/APInt.cpp
parente479ef0b411f2cd9134bd1f6e8b9f12e05089d40 (diff)
Make the static table of results in sqrt const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/APInt.cpp')
-rw-r--r--lib/Support/APInt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp
index 50b0dc34fe..da8e77a7a0 100644
--- a/lib/Support/APInt.cpp
+++ b/lib/Support/APInt.cpp
@@ -1190,7 +1190,7 @@ APInt APInt::sqrt() const {
// Use a fast table for some small values. This also gets rid of some
// rounding errors in libc sqrt for small values.
if (magnitude <= 5) {
- static uint8_t results[32] = {
+ static const uint8_t results[32] = {
/* 0 */ 0,
/* 1- 2 */ 1, 1,
/* 3- 6 */ 2, 2, 2, 2,