[Sema] Fix bug in TypeLocBuilder::pushImpl
authorAkira Hatanaka <ahatanaka@apple.com>
Thu, 18 Feb 2016 21:05:09 +0000 (21:05 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Thu, 18 Feb 2016 21:05:09 +0000 (21:05 +0000)
commitcb4525443c45f09e3e7f990cf0418630e4ba80be
tree9318e6676e70ccec13852ce139778376c630de3d
parent3c81d6240b95decab635819959b36fa5b6d0079e
[Sema] Fix bug in TypeLocBuilder::pushImpl

The code in TypeLocBuilder::pushImpl wasn't correctly handling the case
where an element that has an 8-byte alignment was being pushed.

I plan to follow up with a patch to remove redundancies and simplify the
function.

rdar://problem/23838912

Differential Revision: http://reviews.llvm.org/D16843

llvm-svn: 261260
clang/lib/Sema/TypeLocBuilder.cpp
clang/test/SemaObjCXX/typeloc-data-alignment.mm [new file with mode: 0644]