diff options
author | Ken Dyck <ken.dyck@onsemi.com> | 2010-01-15 12:37:54 +0000 |
---|---|---|
committer | Ken Dyck <ken.dyck@onsemi.com> | 2010-01-15 12:37:54 +0000 |
commit | 02990837adbbffdb485767333ac769ac0fdda89d (patch) | |
tree | c1aa6be3e6ca31143a565b071f6b581f5ac26225 /clang/lib/CodeGen/CGExprConstant.cpp | |
parent | 306f155a84063d01415d04a89b76cc45d12baebe (diff) | |
download | bcm5719-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.cpp | 2 |
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()) { |