[PATCH 06/11] Implement hasErrors() for a single RejectLog

Andreas Simbuerger simbuerg at googlemail.com
Sun Jun 8 17:42:28 PDT 2014


---
 include/polly/ScopDetectionDiagnostic.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/polly/ScopDetectionDiagnostic.h b/include/polly/ScopDetectionDiagnostic.h
index 8c864ff..e7c2caf 100644
--- a/include/polly/ScopDetectionDiagnostic.h
+++ b/include/polly/ScopDetectionDiagnostic.h
@@ -159,6 +159,7 @@ public:
   iterator begin() const { return ErrorReports.begin(); }
   iterator end() const { return ErrorReports.end(); }
   size_t size() const { return ErrorReports.size(); }
+  bool hasErrors() const { return size() > 0; }
 
   const Region *region() const { return R; }
   void report(RejectReasonPtr Reject) { ErrorReports.push_back(Reject); }
-- 
2.0.0




More information about the llvm-commits mailing list