| Issue |
239930
|
| Summary |
[clang][CodeGen] `__atomic_always_lock_free` with a non-constant size asserts on ARM (`HasExtraArg`) and RISC-V ("unexpected builtin ID")
|
| Labels |
backend:ARM,
clang:codegen,
crash,
generated by fuzzer
|
| Assignees |
|
| Reporter |
YuanchengJiang
|
The following code:
```c
void f(unsigned long size, void *ptr) { __atomic_always_lock_free(size, ptr); }
```
Resulted in this output:
```
clang: /root/llvm-project/llvm/tools/clang/lib/CodeGen/TargetBuiltins/ARM.cpp:2702: llvm::Value* clang::CodeGen::CodeGenFunction::EmitARMBuiltinExpr(unsigned int, const clang::CallExpr*, clang::CodeGen::ReturnValueSlot, llvm::Triple::ArchType): Assertion `HasExtraArg' failed.
```
Trunk reproducer (`--target=armv7-none-eabi`): https://godbolt.org/z/nacd531az
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs