Reviewers: aaron.ballman, mehdi_amini, dblaikie
Subscribers: klimek, cfe-commits
Differential Revision: https://reviews.llvm.org/D26276
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285899
91177308-0d34-0410-b5e6-
96231b3b80d8
case tok::caretequal: {
std::string ThisTok(PP.getSpelling(Tok));
if (isLetter(ThisTok[0])) {
- IdentifierInfo *II = &PP.getIdentifierTable().get(ThisTok.data());
+ IdentifierInfo *II = &PP.getIdentifierTable().get(ThisTok);
Tok.setKind(tok::identifier);
SelectorLoc = ConsumeToken();
return II;
const std::map<std::string, Replacements> &FileToReplaces) {
std::map<std::string, Replacements> Result;
for (const auto &Entry : FileToReplaces) {
- llvm::SmallString<256> CleanPath(Entry.first.data());
+ llvm::SmallString<256> CleanPath(Entry.first);
llvm::sys::path::remove_dots(CleanPath, /*remove_dot_dot=*/true);
Result[CleanPath.str()] = std::move(Entry.second);
}