diff options
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) {  | 
