summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprConstant.cpp
diff options
context:
space:
mode:
authorKen Dyck <ken.dyck@onsemi.com>2010-01-15 12:37:54 +0000
committerKen Dyck <ken.dyck@onsemi.com>2010-01-15 12:37:54 +0000
commit02990837adbbffdb485767333ac769ac0fdda89d (patch)
treec1aa6be3e6ca31143a565b071f6b581f5ac26225 /clang/lib/CodeGen/CGExprConstant.cpp
parent306f155a84063d01415d04a89b76cc45d12baebe (diff)
downloadbcm5719-llvm-02990837adbbffdb485767333ac769ac0fdda89d.tar.gz
bcm5719-llvm-02990837adbbffdb485767333ac769ac0fdda89d.zip
Convert the type of the LValue offset variable in APValue to CharUnits, moving
the LValue-related methods of APValue out of line to avoid header file leaching. llvm-svn: 93512
Diffstat (limited to 'clang/lib/CodeGen/CGExprConstant.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprConstant.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprConstant.cpp b/clang/lib/CodeGen/CGExprConstant.cpp
index d1330e066de..dec06e29533 100644
--- a/clang/lib/CodeGen/CGExprConstant.cpp
+++ b/clang/lib/CodeGen/CGExprConstant.cpp
@@ -810,7 +810,7 @@ llvm::Constant *CodeGenModule::EmitConstantExpr(const Expr *E,
const llvm::Type *DestTy = getTypes().ConvertTypeForMem(DestType);
llvm::Constant *Offset =
llvm::ConstantInt::get(llvm::Type::getInt64Ty(VMContext),
- Result.Val.getLValueOffset());
+ Result.Val.getLValueOffset().getQuantity());
llvm::Constant *C;
if (const Expr *LVBase = Result.Val.getLValueBase()) {
OpenPOWER on IntegriCloud