Ensure we can emit symbol aliases via function attribute
even when function signatures contain incomplete types.
Via bugreport:
https://reviews.llvm.org/D66492#2350947
Differential D90073
[Clang][CodeGen] fix failed assertion nickdesaulniers on Oct 23 2020, 1:07 PM. Authored by
Details Ensure we can emit symbol aliases via function attribute Via bugreport:
Diff Detail
Event Timeline
Comment Actions Please make sure the commit message is significantly more descriptive here than what is on the review. |
I'd suggest making this just 'else', that way you don't have to do the assert below. The first line of getFunctionLinkage does the cast to FunctionDecl, so that part is already taken care of.