diff options
author | Nico Weber <nicolasweber@gmx.de> | 2014-08-27 17:04:39 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2014-08-27 17:04:39 +0000 |
commit | 8bf410fafae2496f48578fad0bee9a6503693d1b (patch) | |
tree | 682c1813a8bd80ebe7963b8df8b633523526ca96 /clang/test/CodeGenCXX/cxx11-exception-spec.cpp | |
parent | 7d1c2d88785305c169e740dc72727c6a410d9d7e (diff) | |
download | bcm5719-llvm-8bf410fafae2496f48578fad0bee9a6503693d1b.tar.gz bcm5719-llvm-8bf410fafae2496f48578fad0bee9a6503693d1b.zip |
Call ResolveExceptionSpec for non-OdrUsed functions.
In C++11, instantiation of exception specs is deferred. The instantiation is
done in MarkFunctionReferenced(), which wasn't called for non-OdrUsed functions,
which then caused an assert in codegen. Fixes PR19190, see the bug for details.
llvm-svn: 216562
Diffstat (limited to 'clang/test/CodeGenCXX/cxx11-exception-spec.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/cxx11-exception-spec.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/cxx11-exception-spec.cpp b/clang/test/CodeGenCXX/cxx11-exception-spec.cpp index 3b1516b9253..75f939f93f0 100644 --- a/clang/test/CodeGenCXX/cxx11-exception-spec.cpp +++ b/clang/test/CodeGenCXX/cxx11-exception-spec.cpp @@ -122,3 +122,8 @@ void j() { // CHECK: attributes [[NONE]] = { {{.*}} } // CHECK: attributes [[NUW]] = { nounwind{{.*}} } + +namespace PR19190 { +template <class T> struct DWFIterator { virtual void get() throw(int) = 0; }; +void foo(DWFIterator<int> *foo) { foo->get(); } +} |