summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover/llvm
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2016-05-17 16:03:11 +0200
committerFrancisco Jerez <[email protected]>2016-07-11 20:34:34 -0700
commit2a73ae662cb393bef0d2d0ab71bfd1072adbafb6 (patch)
treee67f3a14dbcc7fb3bfd1bbd1ee79e03d0f8c4bc8 /src/gallium/state_trackers/clover/llvm
parent4ef1c0918da4363aa20b7c1a91d344fae6c01942 (diff)
clover: Define error subclass to signal build option parse failure.
Reviewed-by: Serge Martin <[email protected]> Tested-by: Jan Vesely <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover/llvm')
-rw-r--r--src/gallium/state_trackers/clover/llvm/invocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp
index db3b48176b0..944c30566c0 100644
--- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
+++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
@@ -98,7 +98,7 @@ namespace {
if (!clang::CompilerInvocation::CreateFromArgs(
c->getInvocation(), copts.data(), copts.data() + copts.size(), diag))
- throw error(CL_INVALID_COMPILER_OPTIONS);
+ throw invalid_build_options_error();
c->getTargetOpts().CPU = target.cpu;
c->getTargetOpts().Triple = target.triple;