From 92bf0539a1e2abe2e328e15d2c9e685d696fd378 Mon Sep 17 00:00:00 2001 From: Michael Liao Date: Fri, 18 Oct 2019 15:03:34 +0000 Subject: [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 --- lib/Tooling/Tooling.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1