Replace calls to CharUnits::fromQuantity() with ones to
ASTContext::toCharUnitsFromBits() when converting from bit sizes to char units. llvm-svn: 123720
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user