CodeGen: specify alignment + inbounds for automatic variable initialization
authorJF Bastien <jfbastien@apple.com>
Fri, 13 Jul 2018 20:33:23 +0000 (20:33 +0000)
committerJF Bastien <jfbastien@apple.com>
Fri, 13 Jul 2018 20:33:23 +0000 (20:33 +0000)
commit9aab85a6a07f35a33fb703f40e3e87aca1a08735
treea64e8e597b093f23e815007e2a4855b0f8eac47a
parent2f7de23bea6324fe366d5e5d2676a8a1f981013a
CodeGen: specify alignment + inbounds for automatic variable initialization

Summary: Automatic variable initialization was generating default-aligned stores (which are deprecated) instead of using the known alignment from the alloca. Further, they didn't specify inbounds.

Subscribers: dexonsmith, cfe-commits

Differential Revision: https://reviews.llvm.org/D49209

llvm-svn: 337041
clang/lib/CodeGen/CGBuilder.h
clang/lib/CodeGen/CGDecl.cpp
clang/test/CodeGen/init.c
clang/test/CodeGenOpenCL/partial_initializer.cl