diff options
| author | Ken Dyck <ken.dyck@onsemi.com> | 2011-01-18 02:01:14 +0000 |
|---|---|---|
| committer | Ken Dyck <ken.dyck@onsemi.com> | 2011-01-18 02:01:14 +0000 |
| commit | 9a6486934c6ce7d6a46f4f465c683a8a15f05d5d (patch) | |
| tree | c8d31fb025f6a2399365b979035a44d4b4b2f404 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 8dfa5f1776c2703bba757c388acf90c7fd8551b4 (diff) | |
| download | llvm-9a6486934c6ce7d6a46f4f465c683a8a15f05d5d.zip llvm-9a6486934c6ce7d6a46f4f465c683a8a15f05d5d.tar.gz llvm-9a6486934c6ce7d6a46f4f465c683a8a15f05d5d.tar.bz2 | |
Replace calls to CharUnits::fromQuantity() with ones to
ASTContext::toCharUnitsFromBits() when converting from bit sizes to char units.
llvm-svn: 123720
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index ed3a117..42d5e79 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -1086,8 +1086,8 @@ CodeGenModule::getVTableLinkage(const CXXRecordDecl *RD) { } CharUnits CodeGenModule::GetTargetTypeStoreSize(const llvm::Type *Ty) const { - return CharUnits::fromQuantity( - TheTargetData.getTypeStoreSizeInBits(Ty) / Context.getCharWidth()); + return Context.toCharUnitsFromBits( + TheTargetData.getTypeStoreSizeInBits(Ty)); } void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D) { |
