[cfe-commits] r143856 - /cfe/trunk/lib/Driver/Tools.cpp
David Blaikie
dblaikie at gmail.com
Sat Nov 5 18:53:39 PDT 2011
Author: dblaikie
Date: Sat Nov 5 20:53:39 2011
New Revision: 143856
URL: http://llvm.org/viewvc/llvm-project?rev=143856&view=rev
Log:
Fixing -g break caused by a dead reference to a temporary introduced in r143732.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=143856&r1=143855&r2=143856&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Sat Nov 5 20:53:39 2011
@@ -1459,7 +1459,7 @@
Args.ClaimAllArgs(options::OPT_g_Group);
if (Arg *A = Args.getLastArg(options::OPT_g_Group))
if (!A->getOption().matches(options::OPT_g0)) {
- StringRef ArgString = A->getAsString(Args);
+ const std::string &ArgString = A->getAsString(Args);
bool Valid_g = llvm::StringSwitch<bool>(ArgString)
.Case("-g", true)
.Case("-g3", true)
More information about the cfe-commits
mailing list