Commit 55b998c98d

Matthew Knight <mattnite@protonmail.com>
2020-12-23 00:33:43
Add c_longdouble mapping for bpf (#7504)
1 parent ab6183e
Changed files (1)
src
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");
     }