Add c_longdouble mapping for bpf (#7504)

This commit is contained in:
Matthew Knight 2020-12-22 15:33:43 -08:00 committed by GitHub
parent ab6183e119
commit 55b998c98d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8660,6 +8660,10 @@ static void define_builtin_types(CodeGen *g) {
case ZigLLVM_msp430:
add_fp_entry(g, "c_longdouble", 64, LLVMDoubleType(), &g->builtin_types.entry_c_longdouble);
break;
case ZigLLVM_bpfel:
case ZigLLVM_bpfeb:
add_fp_entry(g, "c_longdouble", 64, LLVMDoubleType(), &g->builtin_types.entry_c_longdouble);
break;
default:
zig_panic("TODO implement mapping for c_longdouble");
}