From: Daniel Dunbar Date: Mon, 30 Nov 2009 08:40:54 +0000 (+0000) Subject: Always pass -fmessage-length using separate arguments. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a28690e5b0e423a6287ebe3a5565fd1896d7ebff;p=clang Always pass -fmessage-length using separate arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90121 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index ed4d39123a..98ec5d615f 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -867,13 +867,13 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, } // Pass -fmessage-length=. + CmdArgs.push_back("-fmessage-length"); if (Arg *A = Args.getLastArg(options::OPT_fmessage_length_EQ)) { - A->render(Args, CmdArgs); + CmdArgs.push_back(A->getValue(Args)); } else { // If -fmessage-length=N was not specified, determine whether this is a // terminal and, if so, implicitly define -fmessage-length appropriately. unsigned N = llvm::sys::Process::StandardErrColumns(); - CmdArgs.push_back("-fmessage-length"); CmdArgs.push_back(Args.MakeArgString(llvm::Twine(N))); }