This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Fix crash when building CFG with variable of incomplete type
ClosedPublic

Authored by mboehme on Mar 6 2017, 1:44 AM.

Details

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.

Diff Detail

Repository
rL LLVM

Event Timeline

mboehme created this revision.Mar 6 2017, 1:44 AM
This revision is now accepted and ready to land.Mar 6 2017, 1:46 AM
This revision was automatically updated to reflect the committed changes.