]> granicus.if.org Git - clang/commit
IRgen: Add CreateMemTemp, for creating an temporary memory object for a particular...
authorDaniel Dunbar <daniel@zuster.org>
Tue, 9 Feb 2010 02:48:28 +0000 (02:48 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 9 Feb 2010 02:48:28 +0000 (02:48 +0000)
commit195337d2e5d4625ae9dc1328c7cdbc7115b0261b
tree26b92950c3fa7023d4e4d136f649b52da1088eb2
parente180ed2f014d49587bc49f09313cabf38080d6fa
IRgen: Add CreateMemTemp, for creating an temporary memory object for a particular type, and flood fill. - CreateMemTemp sets the alignment on the alloca correctly, which fixes a great many places in IRgen where we were doing the wrong thing.

- This fixes many many more places than the test case, but my feeling is we need to audit alignment systematically so I'm not inclined to try hard to test the individual fixes in this patch. If this bothers you, patches welcome!

PR6240.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95648 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBuiltin.cpp
lib/CodeGen/CGCall.cpp
lib/CodeGen/CGDecl.cpp
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGExprAgg.cpp
lib/CodeGen/CGExprCXX.cpp
lib/CodeGen/CGObjC.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGen/address-space-field1.c
test/CodeGenCXX/alloca-align.cpp [new file with mode: 0644]