This is an archive of the discontinued LLVM Phabricator instance.

[clang] Fix a null pointer dereference.
ClosedPublic

Authored by kadircet on Oct 23 2018, 2:27 AM.

Details

Summary

Sometimes expression inside switch statement can be invalid, for
example type might be incomplete. In those cases code were causing a null
pointer dereference. This patch fixes that.

Diff Detail

Repository
rL LLVM

Event Timeline

kadircet created this revision.Oct 23 2018, 2:27 AM
sammccall accepted this revision.Oct 23 2018, 2:53 AM

Nice!
Can you construct an example and add a simple lit test? rL344133 is a recent similar change.

This revision is now accepted and ready to land.Oct 23 2018, 2:53 AM
kadircet updated this revision to Diff 170608.Oct 23 2018, 4:56 AM
  • Add tests.
This revision was automatically updated to reflect the committed changes.