[PATCH] D41311: [CodeGen] Fix crash when a function taking transparent union is redeclared.

Volodymyr Sapsai via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 20 13:12:25 PST 2017


vsapsai updated this revision to Diff 127779.
vsapsai added a comment.

- Address review comment, compare ArgI type with Arg type. Update tests to account for coerced store when types don't match.


https://reviews.llvm.org/D41311

Files:
  clang/lib/CodeGen/CGCall.cpp
  clang/test/CodeGen/kr-func-promote.c
  clang/test/CodeGen/transparent-union-redecl.c
  clang/test/CodeGenCXX/microsoft-abi-multiple-nonvirtual-inheritance.cpp
  clang/test/CodeGenCXX/microsoft-abi-virtual-inheritance-vtordisps.cpp
  clang/test/CodeGenCXX/microsoft-abi-virtual-inheritance.cpp
  clang/test/Sema/transparent-union.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41311.127779.patch
Type: text/x-patch
Size: 9891 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171220/2841cbf1/attachment-0001.bin>


More information about the cfe-commits mailing list