r375245 - [tooling] Relax an assert when multiple GPU targets are specified.
Michael Liao via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 18 08:03:35 PDT 2019
Author: hliao
Date: Fri Oct 18 08:03:34 2019
New Revision: 375245
URL: http://llvm.org/viewvc/llvm-project?rev=375245&view=rev
Log:
[tooling] Relax an assert when multiple GPU targets are specified.
Modified:
cfe/trunk/lib/Tooling/Tooling.cpp
Modified: cfe/trunk/lib/Tooling/Tooling.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Tooling/Tooling.cpp?rev=375245&r1=375244&r2=375245&view=diff
==============================================================================
--- cfe/trunk/lib/Tooling/Tooling.cpp (original)
+++ cfe/trunk/lib/Tooling/Tooling.cpp Fri Oct 18 08:03:34 2019
@@ -105,7 +105,7 @@ static const llvm::opt::ArgStringList *g
// tooling will consider host-compilation only. For tooling on device
// compilation, device compilation only option, such as
// `--cuda-device-only`, needs specifying.
- assert(Actions.size() == 2);
+ assert(Actions.size() > 1);
assert(
isa<driver::CompileJobAction>(Actions.front()) ||
// On MacOSX real actions may end up being wrapped in
More information about the cfe-commits
mailing list