diff options
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/lib/AST/CXXInheritance.cpp | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/AST/CXXInheritance.cpp b/clang/lib/AST/CXXInheritance.cpp index bdba01402c3..c563c37d58f 100644 --- a/clang/lib/AST/CXXInheritance.cpp +++ b/clang/lib/AST/CXXInheritance.cpp @@ -90,6 +90,9 @@ bool CXXRecordDecl::isDerivedFrom(CXXRecordDecl *Base, CXXBasePaths &Paths) cons  }  bool CXXRecordDecl::isVirtuallyDerivedFrom(CXXRecordDecl *Base) const { +  if (!getNumVBases()) +    return false; +    CXXBasePaths Paths(/*FindAmbiguities=*/false, /*RecordPaths=*/false,                       /*DetectVirtual=*/false);  | 

