]> granicus.if.org Git - clang/commit
[CodeGen] Fix a segfault caused by pass_object_size.
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Thu, 16 Jun 2016 23:06:04 +0000 (23:06 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Thu, 16 Jun 2016 23:06:04 +0000 (23:06 +0000)
commitbf13b30ff28e64528806076cc88cc46aa2634e62
tree3b899221a05d85b6793c3610e0cdb298213d3bcc
parent12a83d357c51ff1a219aa576c36776be29c719fd
[CodeGen] Fix a segfault caused by pass_object_size.

This patch fixes a bug where we'd segfault (in some cases) if we saw a
variadic function with one or more pass_object_size arguments.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272971 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/CodeGen/CGFunctionInfo.h
lib/CodeGen/CGCall.cpp
lib/CodeGen/CGExprCXX.cpp
lib/CodeGen/CGVTables.cpp
test/CodeGen/pass-object-size.c
test/CodeGenCXX/pass-object-size.cpp