summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPLexerChange.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-05-21 01:26:53 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-05-21 01:26:53 +0000
commite520293c8b45ceddee022af2cec0a16724d1c526 (patch)
tree31d2f88e283399f7a008fa14c0583e74eccbbd43 /clang/lib/Lex/PPLexerChange.cpp
parent04765ae01e936a3f2bc980ebd8fc7ea8a4760636 (diff)
downloadbcm5719-llvm-e520293c8b45ceddee022af2cec0a16724d1c526.tar.gz
bcm5719-llvm-e520293c8b45ceddee022af2cec0a16724d1c526.zip
Avoid using a C++11 library feature not present in libstdc++4.7.
llvm-svn: 237872
Diffstat (limited to 'clang/lib/Lex/PPLexerChange.cpp')
-rw-r--r--clang/lib/Lex/PPLexerChange.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Lex/PPLexerChange.cpp b/clang/lib/Lex/PPLexerChange.cpp
index 027daae4bed..e68fb7df8e8 100644
--- a/clang/lib/Lex/PPLexerChange.cpp
+++ b/clang/lib/Lex/PPLexerChange.cpp
@@ -627,8 +627,7 @@ void Preprocessor::EnterSubmodule(Module *M, SourceLocation ImportLoc) {
ModMap.resolveConflicts(M, /*Complain=*/false);
// If this is the first time we've entered this module, set up its state.
- auto R = Submodules.emplace(std::piecewise_construct, std::make_tuple(M),
- std::make_tuple());
+ auto R = Submodules.insert(std::make_pair(M, SubmoduleState()));
auto &State = R.first->second;
bool FirstTime = R.second;
if (FirstTime) {
OpenPOWER on IntegriCloud