]> granicus.if.org Git - clang/commit
[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)
commit686c82b22c66974f48de6ca944c4eedfa99cfb14
tree8bbaa5e22492573e4880821a11ed3934ade913b4
parentf27cb29e4198fcf01547c845f53e6398cc77ecf9
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266043 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/ASTMatchers/ASTMatchers.h
unittests/ASTMatchers/ASTMatchersTest.cpp