From 747ae9a7ded98cbfe70134c3f710841a19215c3d Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Wed, 18 Nov 2015 21:10:39 +0000 Subject: ARM: make sure backend is consistent about exception handling method. It turns out we decide whether to use SjLj exceptions or some alternative in two separate places in the backend, and they disagreed with each other. This led to inconsistent code and is generally a terrible idea. So make them consistent and add an assert that they *do* match (unfortunately MCAsmInfo isn't available in opt, so it can't be used to initialise the CodeGen version directly). llvm-svn: 253502 --- llvm/test/CodeGen/ARM/sjljehprepare-lower-empty-struct.ll | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/test/CodeGen/ARM/sjljehprepare-lower-empty-struct.ll') diff --git a/llvm/test/CodeGen/ARM/sjljehprepare-lower-empty-struct.ll b/llvm/test/CodeGen/ARM/sjljehprepare-lower-empty-struct.ll index 5d015738623..b44b447b3df 100644 --- a/llvm/test/CodeGen/ARM/sjljehprepare-lower-empty-struct.ll +++ b/llvm/test/CodeGen/ARM/sjljehprepare-lower-empty-struct.ll @@ -2,6 +2,7 @@ ; RUN: llc -mtriple=armv7-apple-ios -O1 < %s | FileCheck %s ; RUN: llc -mtriple=armv7-apple-ios -O2 < %s | FileCheck %s ; RUN: llc -mtriple=armv7-apple-ios -O3 < %s | FileCheck %s +; RUN: llc -mtriple=armv7k-apple-ios < %s | FileCheck %s ; SjLjEHPrepare shouldn't crash when lowering empty structs. ; -- cgit v1.2.3