summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/modularize/Modularize.cpp
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-07-03 09:30:33 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-07-03 09:30:33 +0000
commit40178c352e5b8841df4862490d112c2a1db0b058 (patch)
tree283af96289a77e749e430c0cd9015b7df65b618f /clang-tools-extra/modularize/Modularize.cpp
parent93834805245d840c4c0f6ca30b486cb491d2b7c2 (diff)
downloadbcm5719-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.cpp4
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.
OpenPOWER on IntegriCloud