diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-04-26 19:19:15 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-04-26 19:19:15 +0000 |
commit | 9a901bb63990574ff0bcc12ff851d7a71cff8ddb (patch) | |
tree | a90ae2d57be74b5e2ce39197f486e31172c46f3f /lib/CodeGen/CGCall.cpp | |
parent | 9ec64d6e2fe575b297e1eaa5051efc2983373e25 (diff) |
Remove getIntegerConstantExprValue in favor of using EvaluateAsInt.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70145 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.cpp')
-rw-r--r-- | lib/CodeGen/CGCall.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp index 5427466cdf..41d4d7c90b 100644 --- a/lib/CodeGen/CGCall.cpp +++ b/lib/CodeGen/CGCall.cpp @@ -785,8 +785,7 @@ void X86_64ABIInfo::classify(QualType Ty, // therefore they can straddle an eightbyte. if (BitField) { uint64_t Offset = OffsetBase + Layout.getFieldOffset(idx); - uint64_t Size = - i->getBitWidth()->getIntegerConstantExprValue(Context).getZExtValue(); + uint64_t Size = i->getBitWidth()->EvaluateAsInt(Context).getZExtValue(); uint64_t EB_Lo = Offset / 64; uint64_t EB_Hi = (Offset + Size - 1) / 64; |