diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-05-21 01:26:53 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-05-21 01:26:53 +0000 |
commit | e520293c8b45ceddee022af2cec0a16724d1c526 (patch) | |
tree | 31d2f88e283399f7a008fa14c0583e74eccbbd43 /clang/lib/Lex/PPLexerChange.cpp | |
parent | 04765ae01e936a3f2bc980ebd8fc7ea8a4760636 (diff) | |
download | bcm5719-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.cpp | 3 |
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) { |