summaryrefslogtreecommitdiffstats
path: root/libcxx/include/variant
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-12-31 17:34:26 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-12-31 17:34:26 +0000
commit21711c451e83efa8d83d3d202525ea3b2b2ca4c8 (patch)
treea4468fd1de962da3991acf697ada32da4e9f00d6 /libcxx/include/variant
parent7510d9aa8a94b1985e0ac49ad5be38fcdd3c0667 (diff)
downloadbcm5719-llvm-21711c451e83efa8d83d3d202525ea3b2b2ca4c8.tar.gz
bcm5719-llvm-21711c451e83efa8d83d3d202525ea3b2b2ca4c8.zip
remove some inherited attributes on exceptions
These exception types are marked with `_LIBCPP_EXCEPTION_ABI` which expands to `__attribute__((__visibility__("default")))` or `__declspec(dllexport)`. When building for Windows, we would hit an error: cannot apply 'dllexport' to a 'dllexport' class Remove the duplicate annotations as they will be inherited from the class. llvm-svn: 290785
Diffstat (limited to 'libcxx/include/variant')
-rw-r--r--libcxx/include/variant2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/variant b/libcxx/include/variant
index 22d6b6c9472..fcbad951f7d 100644
--- a/libcxx/include/variant
+++ b/libcxx/include/variant
@@ -216,7 +216,7 @@ namespace std { // explicitly not using versioning namespace
class _LIBCPP_EXCEPTION_ABI bad_variant_access : public exception {
public:
- _LIBCPP_FUNC_VIS virtual const char* what() const _NOEXCEPT;
+ virtual const char* what() const _NOEXCEPT;
};
} // namespace std
OpenPOWER on IntegriCloud