aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Analysis/PrintfFormatString.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-01-30 15:01:47 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-01-30 15:01:47 +0000
commit842bf1736671be31378c445422662f267d366426 (patch)
tree7fd79d2b5aba33c0dc0105dd5c41d51c293479e8 /clang/lib/Analysis/PrintfFormatString.cpp
parent25df248382fb4cca50f2a28aeee760c0787da617 (diff)
downloadllvm-842bf1736671be31378c445422662f267d366426.zip
llvm-842bf1736671be31378c445422662f267d366426.tar.gz
llvm-842bf1736671be31378c445422662f267d366426.tar.bz2
Use StringRef instead of returning a temporary std::string.
This fixes a really nasty bug in Darwin::getDarwinArchName where we were going StringRef -> temporary std::string -> StringRef (and return the dead StringRef). The StringRefs from Triple live as long as the Triple itself, that should be long enough. Hopefully 2 of 4 MSVC buildbot failures are gone now. llvm-svn: 94892
Diffstat (limited to 'clang/lib/Analysis/PrintfFormatString.cpp')
0 files changed, 0 insertions, 0 deletions