]> granicus.if.org Git - clang/commit
Relax assertion in x86_64 byval argument handling for 32-bit pointers
authorDerek Schuff <dschuff@google.com>
Wed, 24 Jun 2015 22:36:36 +0000 (22:36 +0000)
committerDerek Schuff <dschuff@google.com>
Wed, 24 Jun 2015 22:36:36 +0000 (22:36 +0000)
commit158ecfc2bfa617127894a30fd6e79cbd646b29f2
treef8da42546e29f7916de619467a109706258fae87
parent9e31ec1a144756a6da73fb4da0a0a0253e90bcab
Relax assertion in x86_64 byval argument handling for 32-bit pointers

Summary:
Byval argument pair formation assumes that if a type is less than 8 bytes
it must be an integer and not a pointer, which is not true for x32 and NaCl.

Relax the assertion and add a test for a codegen case that triggered it.

Reviewers: jvoung

Subscribers: jfb, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240600 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetInfo.cpp
test/CodeGenCXX/x86_64-arguments-nacl-x32.cpp