From 55b998c98d574a4fba11cc25760671b6a3bac0cf Mon Sep 17 00:00:00 2001 From: Matthew Knight Date: Tue, 22 Dec 2020 15:33:43 -0800 Subject: [PATCH] Add c_longdouble mapping for bpf (#7504) --- src/stage1/codegen.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stage1/codegen.cpp b/src/stage1/codegen.cpp index ab80149a53..33813501f3 100644 --- a/src/stage1/codegen.cpp +++ b/src/stage1/codegen.cpp @@ -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"); }