[PATCH] D27350: CFGBuilder: Fix crash when visiting delete expression on dependent type

Martin Böhme via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 2 09:25:28 PST 2016


mboehme created this revision.
mboehme added a reviewer: klimek.
mboehme added a subscriber: cfe-commits.

CXXDeleteExpr::getDestroyedType() can return a null QualType if the destroyed
type is a dependent type. This patch protects against this.


https://reviews.llvm.org/D27350

Files:
  lib/Analysis/CFG.cpp
  unittests/Analysis/CFGTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27350.80080.patch
Type: text/x-patch
Size: 3804 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161202/01c72a0b/attachment.bin>


More information about the cfe-commits mailing list