[PATCH 06/11] Implement hasErrors() for a single RejectLog
Tobias Grosser
tobias at grosser.es
Tue Jun 10 00:05:55 PDT 2014
On 09/06/2014 02:42, Andreas Simbuerger wrote:
> ---
> 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); }
It this needed in later patches? In case it is, please merge it with the
change that actually uses it.
Tobias
More information about the llvm-commits
mailing list