]> granicus.if.org Git - clang/commit
Prevent Clang from crashing on template code.
authorRichard Trieu <rtrieu@google.com>
Wed, 2 Jul 2014 04:39:38 +0000 (04:39 +0000)
committerRichard Trieu <rtrieu@google.com>
Wed, 2 Jul 2014 04:39:38 +0000 (04:39 +0000)
commita262c9464b7765b4583c3226fe4d8c33a96b163e
tree2a8642324dd953ac2b4b0806172754b0679a7fa9
parent645fd98f93082e43785353887efda870dcb2e1d9
Prevent Clang from crashing on template code.

Fixes PR20110, where Clang hits an assertion failure when it expects that the
sub-expression of a bit cast to pointer to also be a pointer, but gets a value
instead.

Differential Revision: http://reviews.llvm.org/D4280

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212160 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/SemaCXX/PR20110.cpp [new file with mode: 0644]