aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-30 17:59:58 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-30 17:59:58 +0000
commit46562b9122417bf6f70626f69bd79b8f5a4adac9 (patch)
treefca2481f7ac605b68adde8a90478020286f09a60 /lib/Driver/Tools.cpp
parent536aa02b29ea2bdffff2cc507ed04f6b56737116 (diff)
Fix -MD with no -MT when -o is specified (and fix test case).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68042 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r--lib/Driver/Tools.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index 3e8ccb3de3..e315a2f20e 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -246,7 +246,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
// when we are only generating a dependency file.
Arg *OutputOpt = Args.getLastArg(options::OPT_o);
if (OutputOpt && Output.getType() != types::TY_Dependencies) {
- DepTarget = A->getValue(Args);
+ DepTarget = OutputOpt->getValue(Args);
} else {
// Otherwise derive from the base input.
//