summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains/Gnu.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2018-12-05 11:09:10 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2018-12-05 11:09:10 +0000
commitab090337c5f1cae5bbfc25534497f65e06c35e2d (patch)
tree32e78fe95f16f9d280acf41a0e18668e473d5cd4 /clang/lib/Driver/ToolChains/Gnu.cpp
parenta3d0d5fe6861c350a7571c16a0870311a6dc7bc8 (diff)
downloadbcm5719-llvm-ab090337c5f1cae5bbfc25534497f65e06c35e2d.tar.gz
bcm5719-llvm-ab090337c5f1cae5bbfc25534497f65e06c35e2d.zip
[clang] - Simplify tools::SplitDebugName.
This is an updated version of the D54576, which was reverted. Problem was that SplitDebugName calls the InputInfo::getFilename which asserts if InputInfo given is not of type Filename: const char *getFilename() const { assert(isFilename() && "Invalid accessor."); return Data.Filename; } At the same time at that point, it can be of type Nothing and we need to use getBaseInput(), like original code did. Differential revision: https://reviews.llvm.org/D55006 llvm-svn: 348352
Diffstat (limited to 'clang/lib/Driver/ToolChains/Gnu.cpp')
-rw-r--r--clang/lib/Driver/ToolChains/Gnu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
index 34a92340bb3..67d55f41b29 100644
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
@@ -817,7 +817,7 @@ void tools::gnutools::Assembler::ConstructJob(Compilation &C,
if (Args.hasArg(options::OPT_gsplit_dwarf) &&
getToolChain().getTriple().isOSLinux())
SplitDebugInfo(getToolChain(), C, *this, JA, Args, Output,
- SplitDebugName(Args, Inputs[0], Output));
+ SplitDebugName(Args, Output));
}
namespace {
OpenPOWER on IntegriCloud