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

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 5 22:12:13 PST 2018


ahatanak added inline comments.


================
Comment at: clang/lib/CodeGen/CGCall.cpp:2321
+          ArgI.getCoerceToType() ==
+              ConvertType(isPromoted ? Ty : Arg->getType()) &&
           ArgI.getDirectOffset() == 0) {
----------------
Maybe a comment explaining why different types are passed depending on the value of isPromoted?


https://reviews.llvm.org/D41311





More information about the cfe-commits mailing list