Standardize accesses to the TargetInfo in IR-gen.
Patch by Stephen Lin! llvm-svn: 179638
This commit is contained in:
@@ -1341,7 +1341,7 @@ static CharUnits GetNumNonZeroBytesInInit(const Expr *E, CodeGenFunction &CGF) {
|
||||
// Reference values are always non-null and have the width of a pointer.
|
||||
if (Field->getType()->isReferenceType())
|
||||
NumNonZeroBytes += CGF.getContext().toCharUnitsFromBits(
|
||||
CGF.getContext().getTargetInfo().getPointerWidth(0));
|
||||
CGF.getTarget().getPointerWidth(0));
|
||||
else
|
||||
NumNonZeroBytes += GetNumNonZeroBytesInInit(E, CGF);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user