summaryrefslogtreecommitdiff
path: root/sc/source/core/opencl
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2018-11-30 12:52:53 +0100
committerLuboš Luňák <l.lunak@collabora.com>2019-01-24 20:34:51 +0100
commitc706f61c076995e04038eef6c7fc2942f8e1fb58 (patch)
treeed706e65dc3db305cbe009ab4ad748369efb4fa8 /sc/source/core/opencl
parentba5eaf86a84212ab70424fc83464acec5b0d51a0 (diff)
say in log message which opcode is not handled by OpenCL
Change-Id: I836969c777382a3a7dce23733ebfc331391bf4b4 Reviewed-on: https://gerrit.libreoffice.org/65477 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc/source/core/opencl')
-rw-r--r--sc/source/core/opencl/formulagroupcl.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index 60b4ef6e7d3b..357daa62a07b 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -30,6 +30,8 @@
#include "op_spreadsheet.hxx"
#include "op_addin.hxx"
+#include <com/sun/star/sheet/FormulaLanguage.hpp>
+
// FIXME: The idea that somebody would bother to (now and then? once a year? once a month?) manually
// edit a source file and change the value of some #defined constant and run some ill-defined
// "correctness test" is of course ludicrous. Either things are checked in normal unit tests, in
@@ -3758,7 +3760,9 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments(const ScCalcConfig& config,
break;
default:
- throw UnhandledToken("unhandled opcode", __FILE__, __LINE__);
+ throw UnhandledToken(OUString("unhandled opcode "
+ + formula::FormulaCompiler().GetOpCodeMap(com::sun::star::sheet::FormulaLanguage::ENGLISH)->getSymbol(opc)
+ + "(" + OUString::number(opc) + ")").toUtf8().getStr(), __FILE__, __LINE__);
}
}
}