]> granicus.if.org Git - clang/commitdiff
[tooling] Relax an assert when multiple GPU targets are specified.
authorMichael Liao <michael.hliao@gmail.com>
Fri, 18 Oct 2019 15:03:34 +0000 (15:03 +0000)
committerMichael Liao <michael.hliao@gmail.com>
Fri, 18 Oct 2019 15:03:34 +0000 (15:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@375245 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Tooling/Tooling.cpp

index 60d4dce0cb981f94b0017d71c661ceb8b1d9167c..1d6a968331b58febe7d7b2f0ddd3d54fdf296f53 100644 (file)
@@ -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