Skip to content

Commit

Permalink
Fix builds that use an stl missing std::set::emplace
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206821 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
dwblaikie committed Apr 21, 2014
1 parent c37ae28 commit 9f38d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/TableGen/DFAPacketizerEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9f38d0d

Please sign in to comment.