forked from OSchip/llvm-project
Fix builds that use an stl missing std::set::emplace
llvm-svn: 206821
This commit is contained in:
parent
d43046b5a8
commit
4bcfcc14bd
|
@ -245,7 +245,7 @@ bool State::canAddInsnClass(unsigned InsnClass) const {
|
||||||
|
|
||||||
|
|
||||||
const State &DFA::newState() {
|
const State &DFA::newState() {
|
||||||
auto IterPair = states.emplace();
|
auto IterPair = states.insert(State());
|
||||||
assert(IterPair.second && "State already exists");
|
assert(IterPair.second && "State already exists");
|
||||||
return *IterPair.first;
|
return *IterPair.first;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue