diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-03-03 01:21:32 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-03-03 01:21:32 +0000 |
commit | c5aff4497e5bfd7523e00b87560c1a5aa65136cc (patch) | |
tree | ffbde3af062dbdb627a5cf1f964a306172eec721 /lib/Sema/AnalysisBasedWarnings.cpp | |
parent | 697d42db6cba7a5994d955ce31be2c097902cf0c (diff) |
Teach CFGImplicitDtor::getDestructorDecl() about arrays of objects with destructors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126910 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/AnalysisBasedWarnings.cpp')
-rw-r--r-- | lib/Sema/AnalysisBasedWarnings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/AnalysisBasedWarnings.cpp b/lib/Sema/AnalysisBasedWarnings.cpp index 84efbd50d1..710f5ef70f 100644 --- a/lib/Sema/AnalysisBasedWarnings.cpp +++ b/lib/Sema/AnalysisBasedWarnings.cpp @@ -137,7 +137,7 @@ static ControlFlowKind CheckFallThrough(AnalysisContext &AC) { // FIXME: The right solution is to just sever the edges in the // CFG itself. if (const CFGImplicitDtor *iDtor = ri->getAs<CFGImplicitDtor>()) - if (iDtor->isNoReturn()) { + if (iDtor->isNoReturn(AC.getASTContext())) { hasNoReturnDtor = true; HasFakeEdge = true; break; |