]> granicus.if.org Git - clang/commit
[analyzer] Fix crash when building CFG with variable of incomplete type
authorMartin Bohme <mboehme@google.com>
Tue, 7 Mar 2017 08:42:37 +0000 (08:42 +0000)
committerMartin Bohme <mboehme@google.com>
Tue, 7 Mar 2017 08:42:37 +0000 (08:42 +0000)
commitdc65685eb3652226b2888f9fc8800b39664dba00
tree9c0179d0e55f413d38c18c70c30f7a33393f27d5
parentfc2d9054c86c9b8acbc98b06f1b9d8aa0e5d40f9
[analyzer] Fix crash when building CFG with variable of incomplete type

Summary:
I've included a unit test with a function template containing a variable
of incomplete type. Clang compiles this without errors (the standard
does not require a diagnostic in this case). Without the fix, this case
triggers the crash.

Reviewers: klimek

Reviewed By: klimek

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@297129 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/CFG.cpp
unittests/Analysis/CFGTest.cpp