]> granicus.if.org Git - clang/commit
Sema: Caught exception objects should be unqualified
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 3 Mar 2015 04:38:34 +0000 (04:38 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 3 Mar 2015 04:38:34 +0000 (04:38 +0000)
commit26405073dba71fe1359f1a2de3618cc54dc49b59
treeeee518a085f8003513d286dc943c893bde761f55
parentd5d2bf3e857145eb238d6f3f639aa15861c59e3f
Sema: Caught exception objects should be unqualified

The exception object should be unqualified.  Using a qualified exception
object results in the wrong copy constructor getting called when the
catch handler executes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@231054 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
test/SemaCXX/exceptions.cpp