]> granicus.if.org Git - clang/commit
[clang] Don't segfault on incorrect using directive (PR41400)
authorGauthier Harnisch <tyker1@outlook.com>
Fri, 14 Jun 2019 08:25:52 +0000 (08:25 +0000)
committerGauthier Harnisch <tyker1@outlook.com>
Fri, 14 Jun 2019 08:25:52 +0000 (08:25 +0000)
commit20e4ccc974ae571714d649105c34fa03b3a1156f
tree44fbc341b2263719a2bfc832156979580da1db1f
parent3ccd6a7756d79c37243756b8078cb2153ea4ec7d
[clang] Don't segfault on incorrect using directive (PR41400)

Summary:
this is a bugfixe for [[ https://bugs.llvm.org/show_bug.cgi?id=41400 | PR41400 ]]

added nullptr check at the relevent place and test

Reviewers: rsmith, riccibruno

Reviewed By: rsmith

Subscribers: jkooker, jkorous, riccibruno, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D60523

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363360 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExprCXX.cpp
test/SemaCXX/using-decl-1.cpp