HomePhabricator

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

Authored by a.sidorin on May 14 2018, 9:12 AM.

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().

llvm-svn: 332256

Details

Committed
a.sidorinMay 14 2018, 9:12 AM
Parents
rG4a20f3b3f916: Fix macosx build broken by r332250
Branches
Unknown
Tags
Unknown