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/CGObjCMac.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/CGObjCMac.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCMac.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index faab3cfe10..ae3c267190 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/lib/CodeGen/CGObjCMac.cpp @@ -3085,7 +3085,7 @@ void CGObjCCommonMac::BuildAggrIvarLayout(const ObjCInterfaceDecl *OI, LastFieldBitfield); Expr *BitWidth = LastFieldBitfield->getBitWidth(); uint64_t BitFieldSize = - BitWidth->getIntegerConstantExprValue(CGM.getContext()).getZExtValue(); + BitWidth->EvaluateAsInt(CGM.getContext()).getZExtValue(); skivar.ivar_size = (BitFieldSize / ByteSizeInBits) + ((BitFieldSize % ByteSizeInBits) != 0); SkipIvars.push_back(skivar); @@ -4293,7 +4293,7 @@ void CGObjCNonFragileABIMac::GetClassSizeInfo(const ObjCInterfaceDecl *OID, if (Last->isBitField()) { Expr *BitWidth = Last->getBitWidth(); uint64_t BitFieldSize = - BitWidth->getIntegerConstantExprValue(CGM.getContext()).getZExtValue(); + BitWidth->EvaluateAsInt(CGM.getContext()).getZExtValue(); Size = (BitFieldSize / 8) + ((BitFieldSize % 8) != 0); } #endif |