summaryrefslogtreecommitdiffstats
path: root/lib/Driver/ToolChains/MSVC.h
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2017-08-11 01:47:32 +0000
committerHans Wennborg <hans@hanshq.net>2017-08-11 01:47:32 +0000
commit4af01079ce2f2d2528d72b8ce5be018f68ea7d73 (patch)
tree8187be79ab2ef4533f8c88d43649470b97ba7ed6 /lib/Driver/ToolChains/MSVC.h
parent13722d89229f5766535e66bdb82fd876f8ac1c2c (diff)
Merging r310006:
------------------------------------------------------------------------ r310006 | ahatanak | 2017-08-03 16:55:42 -0700 (Thu, 03 Aug 2017) | 22 lines [Driver][Darwin] Pass -munwind-table when !UseSjLjExceptions. This commit fixes a bug where clang/llvm doesn't emit an unwind table for a function when it is marked noexcept. Without this patch, the following code terminates with an uncaught exception on ARM64: int foo1() noexcept { try { throw 0; } catch (int i) { return 0; } return 1; } int main() { return foo1(); } rdar://problem/32411865 Differential Revision: https://reviews.llvm.org/D35693 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_50@310677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains/MSVC.h')
-rw-r--r--lib/Driver/ToolChains/MSVC.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/ToolChains/MSVC.h b/lib/Driver/ToolChains/MSVC.h
index 055830c52e..d153691a5c 100644
--- a/lib/Driver/ToolChains/MSVC.h
+++ b/lib/Driver/ToolChains/MSVC.h
@@ -73,7 +73,7 @@ public:
Action::OffloadKind DeviceOffloadKind) const override;
bool IsIntegratedAssemblerDefault() const override;
- bool IsUnwindTablesDefault() const override;
+ bool IsUnwindTablesDefault(const llvm::opt::ArgList &Args) const override;
bool isPICDefault() const override;
bool isPIEDefault() const override;
bool isPICDefaultForced() const override;