Avoid using a C++11 library feature not present in libstdc++4.7.

llvm-svn: 237872
This commit is contained in:
Richard Smith 2015-05-21 01:26:53 +00:00
parent 04765ae01e
commit e520293c8b
1 changed files with 1 additions and 2 deletions

View File

@ -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) {