Standardize accesses to the TargetInfo in IR-gen.
Patch by Stephen Lin! llvm-svn: 179638
This commit is contained in:
@@ -900,7 +900,7 @@ CodeGenFunction::EmitAutoVarAlloca(const VarDecl &D) {
|
||||
CharUnits allocaAlignment = alignment;
|
||||
if (isByRef)
|
||||
allocaAlignment = std::max(allocaAlignment,
|
||||
getContext().toCharUnitsFromBits(Target.getPointerAlign(0)));
|
||||
getContext().toCharUnitsFromBits(getTarget().getPointerAlign(0)));
|
||||
Alloc->setAlignment(allocaAlignment.getQuantity());
|
||||
DeclPtr = Alloc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user