[ASTMatchers]: fix crash in hasReturnValue
authorMatthias Gehre <M.Gehre@gmx.de>
Tue, 12 Apr 2016 05:43:18 +0000 (05:43 +0000)
committerMatthias Gehre <M.Gehre@gmx.de>
Tue, 12 Apr 2016 05:43:18 +0000 (05:43 +0000)
commitc27d8d8fd801e141d4c3ead53627f0579384bdb8
tree0f731e3ff210505d6e85d7499ae0d7c17be3173b
parentdd4799c28ed99980991241d0c517fe7076c06d5b
[ASTMatchers]: fix crash in hasReturnValue

Summary:
The crash was reproduced by the included test case. It was initially
found through a crash of clang-tidy's misc-misplaced-widening-cast
check.

Reviewers: klimek, alexfh

Subscribers: cfe-commits, klimek

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

llvm-svn: 266043
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/unittests/ASTMatchers/ASTMatchersTest.cpp