forked from OSchip/llvm-project
Avoid using a C++11 library feature not present in libstdc++4.7.
llvm-svn: 237872
This commit is contained in:
parent
04765ae01e
commit
e520293c8b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue