forked from OSchip/llvm-project
Do not assert when trying to replace the log with another log
This usually happens when TempScopInfo calls isMaxRegionInScop(..), so don't fail there. llvm-svn: 215624
This commit is contained in:
parent
730b01d88e
commit
b0af06f580
|
@ -194,9 +194,9 @@ public:
|
|||
const_iterator begin() const { return Logs.begin(); }
|
||||
const_iterator end() const { return Logs.end(); }
|
||||
|
||||
void insert(std::pair<const Region *, RejectLog> New) {
|
||||
auto Result = Logs.insert(New);
|
||||
assert(Result.second && "Tried to replace an element in the log!");
|
||||
std::pair<iterator, bool>
|
||||
insert(const std::pair<const Region *, RejectLog> &New) {
|
||||
return Logs.insert(New);
|
||||
}
|
||||
|
||||
std::map<const Region *, RejectLog>::mapped_type at(const Region *R) {
|
||||
|
|
Loading…
Reference in New Issue