summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRParser
diff options
context:
space:
mode:
authorMalcolm Parsons <malcolm.parsons@gmail.com>2016-11-02 16:43:50 +0000
committerMalcolm Parsons <malcolm.parsons@gmail.com>2016-11-02 16:43:50 +0000
commit06ac79c2102249be1f8b5c3f230009b207723111 (patch)
tree40997b6ff1cc88d88dd2b6ddfa5376b66f49a490 /llvm/lib/CodeGen/MIRParser
parentb8292c3d65d96a40bd81ba4c5fd8e94fc7e80585 (diff)
downloadbcm5719-llvm-06ac79c2102249be1f8b5c3f230009b207723111.tar.gz
bcm5719-llvm-06ac79c2102249be1f8b5c3f230009b207723111.zip
Fix Clang-tidy readability-redundant-string-cstr warnings
Reviewers: beanz, lattner, jlebar Subscribers: jholewinski, llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D26235 llvm-svn: 285832
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser')
-rw-r--r--llvm/lib/CodeGen/MIRParser/MIParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MIParser.cpp b/llvm/lib/CodeGen/MIRParser/MIParser.cpp
index 02443ce15cc..eb8832a92dc 100644
--- a/llvm/lib/CodeGen/MIRParser/MIParser.cpp
+++ b/llvm/lib/CodeGen/MIRParser/MIParser.cpp
@@ -1047,7 +1047,7 @@ bool MIParser::parseIRConstant(StringRef::iterator Loc, StringRef StringValue,
const Constant *&C) {
auto Source = StringValue.str(); // The source has to be null terminated.
SMDiagnostic Err;
- C = parseConstantValue(Source.c_str(), Err, *MF.getFunction()->getParent(),
+ C = parseConstantValue(Source, Err, *MF.getFunction()->getParent(),
&PFS.IRSlots);
if (!C)
return error(Loc + Err.getColumnNo(), Err.getMessage());
OpenPOWER on IntegriCloud