[all-commits] [llvm/llvm-project] def7c7: [ASTImporter] Fix handling of not defined FromReco...
Shafik Yaghmour via All-commits
all-commits at lists.llvm.org
Thu Apr 23 15:19:34 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: def7c7f6020530ef2deb64f786d28775b5d0e47f
https://github.com/llvm/llvm-project/commit/def7c7f6020530ef2deb64f786d28775b5d0e47f
Author: shafik <syaghmour at apple.com>
Date: 2020-04-23 (Thu, 23 Apr 2020)
Changed paths:
M clang/lib/AST/ASTImporter.cpp
M clang/unittests/AST/ASTImporterTest.cpp
A lldb/test/API/commands/expression/import_base_class_when_class_has_derived_member/TestImportBaseClassWhenClassHasDerivedMember.py
A lldb/test/API/commands/expression/import_base_class_when_class_has_derived_member/main.cpp
Log Message:
-----------
[ASTImporter] Fix handling of not defined FromRecord in ImportContext(...)
In ImportContext(…) we may call into CompleteDecl(…) which if FromRecrord is not
defined will start the definition of a ToRecord but from what I can tell at least
one of the paths though here don't ensure we complete the definition.
For a RecordDecl this can be problematic since this means we won’t import base
classes and we won’t have any of the methods or types we inherit from these bases.
Differential Revision: https://reviews.llvm.org/D78000
More information about the All-commits
mailing list