mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Fix builds that use an stl missing std::set::emplace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206821 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c37ae28d93
commit
9f38d0d113
@ -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