CHERIoT-Platform / llvm-project

Fork of LLVM adding CHERIoT, based on the CHERI LLVM fork
4 stars 6 forks source link

[CHERIoT] Use the libcall calling convention for builtins. #32

Closed davidchisnall closed 5 months ago

davidchisnall commented 5 months ago

Libc++ uses __builtin_strlen to avoid including string.h. This is expanded to a call to strlen in clang, but with the wrong calling convention.

Fixes #29