diff options
| author | Dan Albert <danalbert@google.com> | 2014-10-10 02:26:00 +0000 |
|---|---|---|
| committer | Dan Albert <danalbert@google.com> | 2014-10-10 02:26:00 +0000 |
| commit | a4ec57c2c5e0f9fa18e517bac828a1f87b7c39f6 (patch) | |
| tree | e721ec9cf59c35ceaa9fb90c9f89234495544a43 /clang/lib | |
| parent | d30d8f46584c062fc65dc4161ea5a041a03534cc (diff) | |
| download | bcm5719-llvm-a4ec57c2c5e0f9fa18e517bac828a1f87b7c39f6.tar.gz bcm5719-llvm-a4ec57c2c5e0f9fa18e517bac828a1f87b7c39f6.zip | |
Hopefully fixes test failures for msvc.
Looks like llvm::sys::path::filename() was canonicalizing my paths
before emitting them for FileCheck to stumble over.
Fix a style nit with r219460 while I'm at it.
llvm-svn: 219464
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index abcbb5c7871..0bbc964838d 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -3242,8 +3242,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, if (Output.isFilename()) { CmdArgs.push_back("-coverage-file"); SmallString<128> CoverageFilename; - Arg *FinalOutput = C.getArgs().getLastArg(options::OPT_o); - if (FinalOutput) { + if (Arg *FinalOutput = C.getArgs().getLastArg(options::OPT_o)) { CoverageFilename = FinalOutput->getValue(); } else { CoverageFilename = llvm::sys::path::filename(Output.getBaseInput()); |

