diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2015-07-03 09:30:33 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2015-07-03 09:30:33 +0000 |
commit | 40178c352e5b8841df4862490d112c2a1db0b058 (patch) | |
tree | 283af96289a77e749e430c0cd9015b7df65b618f /clang-tools-extra/modularize/Modularize.cpp | |
parent | 93834805245d840c4c0f6ca30b486cb491d2b7c2 (diff) | |
download | bcm5719-llvm-40178c352e5b8841df4862490d112c2a1db0b058.tar.gz bcm5719-llvm-40178c352e5b8841df4862490d112c2a1db0b058.zip |
Revert r241330. It compiled with Visual C++ 2013 and gcc 4.9.1 (mingw) but now fails the bots.
llvm-svn: 241335
Diffstat (limited to 'clang-tools-extra/modularize/Modularize.cpp')
-rw-r--r-- | clang-tools-extra/modularize/Modularize.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/modularize/Modularize.cpp b/clang-tools-extra/modularize/Modularize.cpp index 4acfe72b42e..a309ecd3286 100644 --- a/clang-tools-extra/modularize/Modularize.cpp +++ b/clang-tools-extra/modularize/Modularize.cpp @@ -466,9 +466,9 @@ class EntityMap : public StringMap<SmallVector<Entry, 2> > { public: DenseMap<const FileEntry *, HeaderContents> HeaderContentMismatches; - void add(StringRef Name, enum Entry::EntryKind Kind, Location Loc) { + void add(const std::string &Name, enum Entry::EntryKind Kind, Location Loc) { // Record this entity in its header. - HeaderEntry HE = {Name.str(), Loc}; + HeaderEntry HE = { Name, Loc }; CurHeaderContents[Loc.File].push_back(HE); // Check whether we've seen this entry before. |