[PATCH] D95984: [CodeGen] Fix codegen for __attribute__((swiftasynccall)).

Varun Gandhi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 2 10:29:26 PST 2021


varungandhi-apple updated this revision to Diff 327510.
varungandhi-apple added a comment.

Add null check for callee; instead of using getFunctionType() directly.

Otherwise, it leads to a crash when compiling gtest-all.cc.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D95984/new/

https://reviews.llvm.org/D95984

Files:
  clang/lib/CodeGen/CGCall.cpp
  clang/lib/CodeGen/CGStmt.cpp
  clang/test/CodeGen/64bit-swiftcall.c
  clang/test/CodeGen/arm-swiftcall.c
  clang/test/CodeGen/swift-async-call-conv.c
  clang/test/CodeGen/swift-call-conv.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95984.327510.patch
Type: text/x-patch
Size: 10881 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210302/5aa696c0/attachment.bin>


More information about the cfe-commits mailing list