summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjCGNU.cpp
diff options
context:
space:
mode:
authorMalcolm Parsons <malcolm.parsons@gmail.com>2016-11-02 10:39:27 +0000
committerMalcolm Parsons <malcolm.parsons@gmail.com>2016-11-02 10:39:27 +0000
commitf76f6507c2359b0e2b1d6a2cc2305bf69932e4b8 (patch)
tree1ad0fc11d9a2a1573da6c1ca02c8a24a8a3760a5 /clang/lib/CodeGen/CGObjCGNU.cpp
parenteaa419cf5e87a164d6a5b43f8f1bc7530c70c977 (diff)
downloadbcm5719-llvm-f76f6507c2359b0e2b1d6a2cc2305bf69932e4b8.tar.gz
bcm5719-llvm-f76f6507c2359b0e2b1d6a2cc2305bf69932e4b8.zip
Fix Clang-tidy readability-redundant-string-cstr warnings
Reviewers: aaron.ballman, mehdi_amini, dblaikie Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D26206 llvm-svn: 285799
Diffstat (limited to 'clang/lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjCGNU.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp
index e073faca543..f0f9f6d67f6 100644
--- a/clang/lib/CodeGen/CGObjCGNU.cpp
+++ b/clang/lib/CodeGen/CGObjCGNU.cpp
@@ -2647,8 +2647,7 @@ llvm::Function *CGObjCGNU::ModuleInitFunction() {
for (std::vector<ClassAliasPair>::iterator iter = ClassAliases.begin();
iter != ClassAliases.end(); ++iter) {
llvm::Constant *TheClass =
- TheModule.getGlobalVariable(("_OBJC_CLASS_" + iter->first).c_str(),
- true);
+ TheModule.getGlobalVariable("_OBJC_CLASS_" + iter->first, true);
if (TheClass) {
TheClass = llvm::ConstantExpr::getBitCast(TheClass, PtrTy);
Builder.CreateCall(RegisterAlias,
OpenPOWER on IntegriCloud