]> granicus.if.org Git - clang/commit
Fix alignment issue in CodeGenFunction::PopCleanupBlock.
authorJames Y Knight <jyknight@google.com>
Wed, 30 Dec 2015 03:58:33 +0000 (03:58 +0000)
committerJames Y Knight <jyknight@google.com>
Wed, 30 Dec 2015 03:58:33 +0000 (03:58 +0000)
commit9559085cc9d1fce0685cdf325b46ae2d0c8dbb3e
tree1a729c6bf78518c01140f4549191ce9bdbaa4867
parent52996d2bc4a8eaee76d9bca0034fa5f52bbf5091
Fix alignment issue in CodeGenFunction::PopCleanupBlock.

It was copying an EHCleanupStack::Cleanup object into a
SmallVector<char>, with a comment saying that SmallVector's alignment is
always large enough. Unfortunately, that isn't actually true after
r162331 in 2012.

Expand the code (somewhat distastefully) to get a stack allocation with
a correct alignment.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256619 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCleanup.cpp