[Libreoffice-commits] core.git: sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Jan 24 19:38:28 UTC 2019


 sc/source/core/opencl/formulagroupcl.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 78317bc663a0c33bef536b3db98380e64ce32b28
Author:     Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Fri Nov 30 15:02:48 2018 +0100
Commit:     Luboš Luňák <l.lunak at collabora.com>
CommitDate: Thu Jan 24 20:37:56 2019 +0100

    in dbgutils mode, abort if an OpenCL program fails to compile
    
    Change-Id: I86e57e6da645b59f8c71387057047c9aab4d1759
    Reviewed-on: https://gerrit.libreoffice.org/65480
    Tested-by: Jenkins
    Reviewed-by: Luboš Luňák <l.lunak at collabora.com>

diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index ab43f2f3092a..594ad8acf8bc 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -4029,7 +4029,12 @@ void DynamicKernel::CreateKernel()
                     }
                 }
 #endif
+#ifdef DBG_UTIL
+                SAL_WARN("sc.opencl", "Program failed to build, aborting.");
+                abort(); // make sure errors such as typos don't accidentally go unnoticed
+#else
                 throw OpenCLError("clBuildProgram", err, __FILE__, __LINE__);
+#endif
             }
             SAL_INFO("sc.opencl", "Built program " << mpProgram);
 


More information about the Libreoffice-commits mailing list