diff options
Diffstat (limited to 'polly/lib/Support/GICHelper.cpp')
-rw-r--r-- | polly/lib/Support/GICHelper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/polly/lib/Support/GICHelper.cpp b/polly/lib/Support/GICHelper.cpp index 638289c86bec..0e491944c162 100644 --- a/polly/lib/Support/GICHelper.cpp +++ b/polly/lib/Support/GICHelper.cpp @@ -74,8 +74,8 @@ APInt polly::APIntFromVal(__isl_take isl_val *Val) { // isl may represent small numbers with more than the minimal number of bits. // We truncate the APInt to the minimal number of bits needed to represent the // signed value it contains, to ensure that the bitwidth is always minimal. - if (A.getMinSignedBits() < A.getBitWidth()) - A = A.trunc(A.getMinSignedBits()); + if (A.getSignificantBits() < A.getBitWidth()) + A = A.trunc(A.getSignificantBits()); free(Data); isl_val_free(Val); |