]> granicus.if.org Git - clang/commit
Call ResolveExceptionSpec for non-OdrUsed functions.
authorNico Weber <nicolasweber@gmx.de>
Wed, 27 Aug 2014 17:04:39 +0000 (17:04 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 27 Aug 2014 17:04:39 +0000 (17:04 +0000)
commit45440021a557a8171e95e2586ceb18ac84c32e3d
treecc0b0caa5adbc797ba82b16345cc11bc892fd966
parentfa0908f21915ffa5e0f4f2e4feda84b02b43e7ce
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216562 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaExpr.cpp
test/CodeGenCXX/cxx11-exception-spec.cpp