mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Fix builds that use an stl missing std::set::emplace
llvm-svn: 206821
This commit is contained in:
parent
924dce994d
commit
3cdf7d5794
@ -245,7 +245,7 @@ bool State::canAddInsnClass(unsigned InsnClass) const {
|
||||
|
||||
|
||||
const State &DFA::newState() {
|
||||
auto IterPair = states.emplace();
|
||||
auto IterPair = states.insert(State());
|
||||
assert(IterPair.second && "State already exists");
|
||||
return *IterPair.first;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user