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 | 92bf0539a1e2abe2e328e15d2c9e685d696fd378 (patch) | |
tree | 015af111fc0bcc2f46deaa3ceeff2eda2d950073 | |
parent | 5cee329c981f3e365e69fef3b05e43144df8a6e2 (diff) | |
download | clang-92bf0539a1e2abe2e328e15d2c9e685d696fd378.tar.gz |
[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
-rw-r--r-- | lib/Tooling/Tooling.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<driver::CompileJobAction>(Actions.front()) || // On MacOSX real actions may end up being wrapped in |