diff options
| author | Michael Liao <michael.hliao@gmail.com> | 2019-10-18 15:03:34 +0000 |
|---|---|---|
| committer | Michael Liao <michael.hliao@gmail.com> | 2019-10-18 15:03:34 +0000 |
| commit | 7e5d5ee873e14b7e3db0ee07fa402aca13f83a36 (patch) | |
| tree | 28f7d7e8c53923935b18c2645aeac3f8cebde755 /clang/lib | |
| parent | 77460d3888c56a6ed8184783388ed109590ee199 (diff) | |
| download | bcm5719-llvm-7e5d5ee873e14b7e3db0ee07fa402aca13f83a36.tar.gz bcm5719-llvm-7e5d5ee873e14b7e3db0ee07fa402aca13f83a36.zip | |
[tooling] Relax an assert when multiple GPU targets are specified.
llvm-svn: 375245
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Tooling/Tooling.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Tooling/Tooling.cpp b/clang/lib/Tooling/Tooling.cpp index 60d4dce0cb9..1d6a968331b 100644 --- a/clang/lib/Tooling/Tooling.cpp +++ b/clang/lib/Tooling/Tooling.cpp @@ -105,7 +105,7 @@ static const llvm::opt::ArgStringList *getCC1Arguments( // 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 |

