forked from CTSRD-CHERI/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ASTImporter] Fix 'isVirtual()' assert failure while import overridde…
…n methods CXXMethodDecl::isVirtual() count the number of overridden methods. This assertion is not true before overridden methods are fully loaded. The body of this CXXMethodDecl can introduce deps on a derived class which contains a method overriding this method, causing the assertion failure. ImportOverriddenMethods() is moved before body loading to fix this issue. Testcase is contributed by Balázs Kéri (balazske) Differential Revision: https://reviews.llvm.org/D154701
- Loading branch information
Showing
2 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters