Skip to content

Commit c4c29b9

Browse files
committed
Revert "[NFC] Change the return type of getTraversalScope to ArrayRef"
This reverts commit 9189d84. ASan catches that someone actually DOES modify the collection somewhere it looks.
1 parent 16e051f commit c4c29b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/AST/ASTContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
723723
// (However they are still accessible via TranslationUnitDecl->decls())
724724
//
725725
// Changing the scope clears the parent cache, which is expensive to rebuild.
726-
ArrayRef<Decl *> getTraversalScope() const { return TraversalScope; }
726+
std::vector<Decl *> getTraversalScope() const { return TraversalScope; }
727727
void setTraversalScope(const std::vector<Decl *> &);
728728

729729
/// Forwards to get node parents from the ParentMapContext. New callers should

0 commit comments

Comments
 (0)