From c6cdf1f6726957d4353a66f1bfce021b0f5eebf1 Mon Sep 17 00:00:00 2001 From: Anthony Pesch Date: Tue, 13 May 2014 23:19:56 -0700 Subject: [PATCH] nest X64Function in its own block to avoid clang errors related to goto usage --- src/alloy/backend/x64/x64_assembler.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/alloy/backend/x64/x64_assembler.cc b/src/alloy/backend/x64/x64_assembler.cc index 3f90b077b..5a7028e11 100644 --- a/src/alloy/backend/x64/x64_assembler.cc +++ b/src/alloy/backend/x64/x64_assembler.cc @@ -83,13 +83,15 @@ int X64Assembler::Assemble( string_buffer_.Reset(); } - X64Function* fn = new X64Function(symbol_info); - fn->set_debug_info(debug_info); - fn->Setup(machine_code, code_size); + { + X64Function* fn = new X64Function(symbol_info); + fn->set_debug_info(debug_info); + fn->Setup(machine_code, code_size); - *out_function = fn; + *out_function = fn; - result = 0; + result = 0; + } XECLEANUP: Reset();