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 | 1c4a175aefcdcf38230baa37dade6bbad3d53240 (patch) | |
tree | 9c4c377dbe49214d2205c495d58d6af2a6d612b2 /clang/lib/CodeGen/CGCall.cpp | |
parent | 5cdb8cc267d0820f724e8643b70c3bf74885c830 (diff) | |
download | bcm5719-llvm-1c4a175aefcdcf38230baa37dade6bbad3d53240.tar.gz bcm5719-llvm-1c4a175aefcdcf38230baa37dade6bbad3d53240.zip |
Remove getIntegerConstantExprValue in favor of using EvaluateAsInt.
llvm-svn: 70145
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index 5427466cdf9..41d4d7c90b9 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/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; |