Change the return type of ASTContext::getDeclAlignInBytes() to CharUnits and,
now that the "InBytes" part of the name is implied by the return type, rename it to getDeclAlign(). llvm-svn: 94681
This commit is contained in:
@@ -1065,7 +1065,7 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D) {
|
||||
if (!NonConstInit && DeclIsConstantGlobal(Context, D))
|
||||
GV->setConstant(true);
|
||||
|
||||
GV->setAlignment(getContext().getDeclAlignInBytes(D));
|
||||
GV->setAlignment(getContext().getDeclAlign(D).getQuantity());
|
||||
|
||||
// Set the llvm linkage type as appropriate.
|
||||
GVALinkage Linkage = GetLinkageForVariable(getContext(), D);
|
||||
|
||||
Reference in New Issue
Block a user