[Sema] Null check in BuildDeclarationNameExpr
authorYi Kong <yikong@google.com>
Mon, 25 Sep 2017 17:36:54 +0000 (17:36 +0000)
committerYi Kong <yikong@google.com>
Mon, 25 Sep 2017 17:36:54 +0000 (17:36 +0000)
commit310389691408b89a89c197ad7cdc98494b22e2b4
tree78ba8aafde06003c4817eaa4ba8c40f0e4ab3010
parenta23c1a37d0ee031a17f37d63cb8ead3a0230c906
[Sema] Null check in BuildDeclarationNameExpr

Qualtype may point to null if we cannot infer its type yet.

Fixes PR33843

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

llvm-svn: 314124
clang/lib/Sema/SemaExpr.cpp
clang/test/SemaCXX/typo-correction-crash.cpp