diff --git a/polly/include/polly/ScopDetectionDiagnostic.h b/polly/include/polly/ScopDetectionDiagnostic.h index 4d2dfadc9ff9..145e05eb1508 100644 --- a/polly/include/polly/ScopDetectionDiagnostic.h +++ b/polly/include/polly/ScopDetectionDiagnostic.h @@ -194,9 +194,9 @@ public: const_iterator begin() const { return Logs.begin(); } const_iterator end() const { return Logs.end(); } - void insert(std::pair New) { - auto Result = Logs.insert(New); - assert(Result.second && "Tried to replace an element in the log!"); + std::pair + insert(const std::pair &New) { + return Logs.insert(New); } std::map::mapped_type at(const Region *R) {