diff options
| author | faisal vali <faisalv@yahoo.com> | 2023-09-16 13:29:59 -0500 |
|---|---|---|
| committer | faisal vali <faisalv@yahoo.com> | 2023-09-16 13:29:59 -0500 |
| commit | 5bdd5d064d5171b2d5ff6268528cfffd2f86b8ea (patch) | |
| tree | d1efdf6807c83d330ff5c85e505465694a4ec31a /mlir/lib/Bytecode/Reader/BytecodeReader.cpp | |
| parent | 8049db0990d1695a40de57f136af20ce5340b4a6 (diff) | |
| download | llvm-5bdd5d064d5171b2d5ff6268528cfffd2f86b8ea.zip llvm-5bdd5d064d5171b2d5ff6268528cfffd2f86b8ea.tar.gz llvm-5bdd5d064d5171b2d5ff6268528cfffd2f86b8ea.tar.bz2 | |
Fix PR#62594 : static lambda call operator is not convertible to function pointer on win32
See issue https://github.com/llvm/llvm-project/issues/62594
This code does not work on win32:
auto lstatic = []() static { return 0; };
int (*f2)(void) = lstatic;
Since a calling convention such as CC_X86ThisCall can rightly interfere with the implicit pointer to function conversion if erroneously marked on a static function, the fix entails checking the 'static' specifier on the lambda declarator prior to assigning it a calling convention of an non-static member (which pre-c++23 made sense).
Diffstat (limited to 'mlir/lib/Bytecode/Reader/BytecodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
