From: Michael Liao Date: Fri, 18 Oct 2019 15:03:34 +0000 (+0000) Subject: [tooling] Relax an assert when multiple GPU targets are specified. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92bf0539a1e2abe2e328e15d2c9e685d696fd378;p=clang [tooling] Relax an assert when multiple GPU targets are specified. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@375245 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Tooling/Tooling.cpp b/lib/Tooling/Tooling.cpp index 60d4dce0cb..1d6a968331 100644 --- a/lib/Tooling/Tooling.cpp +++ b/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(Actions.front()) || // On MacOSX real actions may end up being wrapped in