HomePhabricator

[ASTImporter] Turn StringRefs back to std::strings to avoid use-after-free

Description

[ASTImporter] Turn StringRefs back to std::strings to avoid use-after-free

This is a workaround for the issue in buildASTFromCodeWithArgs()
where a local buffer can be used to store the program text
referred by SourceManager.
FIXME: Fix the root issue in buildASTFromCodeWithArgs().

Details

Committed
a.sidorinMay 14 2018, 9:12 AM
Branches
Unknown
Tags
Unknown