diff options
| author | Hans Wennborg <hans@hanshq.net> | 2014-04-25 16:44:17 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2014-04-25 16:44:17 +0000 |
| commit | 8a6fa5cade1b3e402e3e161936045361eeaa426f (patch) | |
| tree | 2fc22563cb640b523b9727e14f7bef6537a7ecb4 /lib/Driver/Tools.cpp | |
| parent | b67bacf5c681998d875faaa0c3c47c8dea71fccb (diff) | |
| download | clang-8a6fa5cade1b3e402e3e161936045361eeaa426f.tar.gz clang-8a6fa5cade1b3e402e3e161936045361eeaa426f.tar.bz2 clang-8a6fa5cade1b3e402e3e161936045361eeaa426f.tar.xz | |
clang-cl: /fallback only applies to C or C++ files
We would previously hit an assert if using /fallback with an .ll file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207234 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
| -rw-r--r-- | lib/Driver/Tools.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 924e040246..991fe4358e 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -4066,7 +4066,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, // Finally add the compile command to the compilation. if (Args.hasArg(options::OPT__SLASH_fallback) && - Output.getType() == types::TY_Object) { + Output.getType() == types::TY_Object && + (InputType == types::TY_C || InputType == types::TY_CXX)) { tools::visualstudio::Compile CL(getToolChain()); Command *CLCommand = CL.GetCommand(C, JA, Output, Inputs, Args, LinkingOutput); |
