From 83b2785a43daa2a481a6b6eaa372629f68fa4b63 Mon Sep 17 00:00:00 2001 From: Nathan Michaels Date: Tue, 8 Dec 2020 13:09:00 -0500 Subject: [PATCH] Implement msp430 mapping for c_longdouble. (#7333) --- src/stage1/codegen.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stage1/codegen.cpp b/src/stage1/codegen.cpp index 6c51ab78d4..cb572ee439 100644 --- a/src/stage1/codegen.cpp +++ b/src/stage1/codegen.cpp @@ -8635,6 +8635,9 @@ static void define_builtin_types(CodeGen *g) { // It's either a float or a double, depending on a toolchain switch add_fp_entry(g, "c_longdouble", 64, LLVMDoubleType(), &g->builtin_types.entry_c_longdouble); break; + case ZigLLVM_msp430: + add_fp_entry(g, "c_longdouble", 64, LLVMDoubleType(), &g->builtin_types.entry_c_longdouble); + break; default: zig_panic("TODO implement mapping for c_longdouble"); }