diff options
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index 49ac20a9bcd..acf16561ccf 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -237,7 +237,7 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const VarDecl &D) { if (isByRef) Alloc->setAlignment(std::max(getContext().getDeclAlignInBytes(&D), - getContext().getTypeAlign(getContext().VoidPtrTy) / 8)); + unsigned(Target.getPointerAlign(0) / 8))); else Alloc->setAlignment(getContext().getDeclAlignInBytes(&D)); DeclPtr = Alloc; |