diff options
author | Malcolm Parsons <malcolm.parsons@gmail.com> | 2016-11-02 16:43:50 +0000 |
---|---|---|
committer | Malcolm Parsons <malcolm.parsons@gmail.com> | 2016-11-02 16:43:50 +0000 |
commit | 06ac79c2102249be1f8b5c3f230009b207723111 (patch) | |
tree | 40997b6ff1cc88d88dd2b6ddfa5376b66f49a490 /llvm/examples/ExceptionDemo/ExceptionDemo.cpp | |
parent | b8292c3d65d96a40bd81ba4c5fd8e94fc7e80585 (diff) | |
download | bcm5719-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/examples/ExceptionDemo/ExceptionDemo.cpp')
-rw-r--r-- | llvm/examples/ExceptionDemo/ExceptionDemo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/ExceptionDemo/ExceptionDemo.cpp b/llvm/examples/ExceptionDemo/ExceptionDemo.cpp index 0afc3fdf59a..315f95ad463 100644 --- a/llvm/examples/ExceptionDemo/ExceptionDemo.cpp +++ b/llvm/examples/ExceptionDemo/ExceptionDemo.cpp @@ -254,7 +254,7 @@ static llvm::AllocaInst *createEntryBlockAlloca(llvm::Function &function, llvm::Constant *initWith = 0) { llvm::BasicBlock &block = function.getEntryBlock(); llvm::IRBuilder<> tmp(&block, block.begin()); - llvm::AllocaInst *ret = tmp.CreateAlloca(type, 0, varName.c_str()); + llvm::AllocaInst *ret = tmp.CreateAlloca(type, 0, varName); if (initWith) tmp.CreateStore(initWith, ret); |