Commit 9dc3ab8
committed
[cxx-interop] Do not crash for
This fixes an assertion failure:
```
Assertion failed: (isInstance() && "No 'this' for static methods!"), function getThisType, file DeclCXX.cpp, line 2636.
```
Clang changed it's handling of member call expressions in llvm/llvm-project@af47517 causing the assertion to fail when synthesizing a forwarding function declaration for `static operator()`.
rdar://133257179static operator()
1 parent 39b8b3c commit 9dc3ab8
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2138 | 2138 | | |
2139 | 2139 | | |
2140 | 2140 | | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
2141 | 2146 | | |
2142 | 2147 | | |
2143 | 2148 | | |
2144 | 2149 | | |
2145 | 2150 | | |
2146 | 2151 | | |
2147 | 2152 | | |
2148 | | - | |
| 2153 | + | |
2149 | 2154 | | |
2150 | 2155 | | |
2151 | 2156 | | |
| |||
2156 | 2161 | | |
2157 | 2162 | | |
2158 | 2163 | | |
2159 | | - | |
| 2164 | + | |
2160 | 2165 | | |
2161 | 2166 | | |
2162 | 2167 | | |
| |||
0 commit comments