Sema: Properly initialize the thrown exception object
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 3 Mar 2015 01:50:05 +0000 (01:50 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 3 Mar 2015 01:50:05 +0000 (01:50 +0000)
commitd09a51c299ab277119b2e96b26ed9864c6404ebe
treeea05b065457d4b843e712b0964d957df7914a85c
parent786ad180496d20cf224ba30b25a754cc2d934b2b
Sema: Properly initialize the thrown exception object

We would create the exception object with the wrong qualifiers, ensuring
that the wrong copy constructor would get called.

llvm-svn: 231049
clang/include/clang/AST/ASTContext.h
clang/lib/AST/ASTContext.cpp
clang/lib/Sema/SemaExprCXX.cpp
clang/test/SemaCXX/exceptions.cpp