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:
Andreas Simbuerger 2014-08-14 08:53:09 +00:00
parent 730b01d88e
commit b0af06f580
1 changed files with 3 additions and 3 deletions

View File

@ -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) {