summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains/MinGW.h
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2017-08-03 23:55:42 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2017-08-03 23:55:42 +0000
commitb72e35a4c41def2d34235cdd7fa3685fe8bddb00 (patch)
tree14bb72c39d5d143996ab6289fa4a07e7a8489baa /clang/lib/Driver/ToolChains/MinGW.h
parent8482e56920780be8146b4088ec21502d00b9e440 (diff)
downloadbcm5719-llvm-b72e35a4c41def2d34235cdd7fa3685fe8bddb00.tar.gz
bcm5719-llvm-b72e35a4c41def2d34235cdd7fa3685fe8bddb00.zip
[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 llvm-svn: 310006
Diffstat (limited to 'clang/lib/Driver/ToolChains/MinGW.h')
-rw-r--r--clang/lib/Driver/ToolChains/MinGW.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains/MinGW.h b/clang/lib/Driver/ToolChains/MinGW.h
index cf1628a4ccd..9b3d7c553f1 100644
--- a/clang/lib/Driver/ToolChains/MinGW.h
+++ b/clang/lib/Driver/ToolChains/MinGW.h
@@ -60,7 +60,7 @@ public:
const llvm::opt::ArgList &Args);
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;
OpenPOWER on IntegriCloud