From d1e2fad2e036060ca9f0eaa04a58c8f1dc1aaa77 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Fri, 17 Jul 2015 00:15:22 +0000 Subject: [PATCH] Allow __builtin_setjmp/__builtin_longjmp on ARM The problems in the llvm target got fixed in r242481 and r242482. Related to rdar://20544153, rdar://20660786 llvm-svn: 242489 --- clang/lib/Basic/Targets.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index af4104f..75855ef 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -4750,6 +4750,10 @@ public: if (RegNo == 1) return 1; return -1; } + + bool hasSjLjLowering() const override { + return true; + } }; bool ARMTargetInfo::setFPMath(StringRef Name) { -- 2.7.4