diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-11-06 22:02:00 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-11-06 22:02:00 +0000 |
commit | 03c60765c7607cbfb4e1e8593028824dab13ad54 (patch) | |
tree | bf088e97348cfc25b01079be27ca41e277e6f03d /lib/Driver/Tools.cpp | |
parent | 4d9eff53c49a2c1b9b460b899c95dcdbb3e056e1 (diff) |
clang/lib/Driver/Tools.cpp: Fix abuse of StringRef.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167494 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 2eca3fe7b7..a208ef5a69 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -2595,7 +2595,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, // -fno-rtti cannot usefully be combined with -fsanitize=vptr. if (Sanitize.sanitizesVptr()) { - llvm::StringRef NoRttiArg = + std::string NoRttiArg = Args.getLastArg(options::OPT_mkernel, options::OPT_fapple_kext, options::OPT_fno_rtti)->getAsString(Args); |