diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-10-01 06:22:04 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-10-01 06:22:04 +0000 |
commit | 7419e940d276f292a91994629555309384523ade (patch) | |
tree | b14ac143e474d3fcd74a436ae470f3e5c6665fdd /llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp | |
parent | be351eea0cc06e3efa0b8c45f6dfeb32ae7dfabc (diff) | |
download | bcm5719-llvm-7419e940d276f292a91994629555309384523ade.tar.gz bcm5719-llvm-7419e940d276f292a91994629555309384523ade.zip |
Use StringRef instead of raw pointer in ExecutionEngine
llvm-svn: 283016
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp b/llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp index d6b209a91d7..1d7c6e714ed 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp +++ b/llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp @@ -187,7 +187,7 @@ LLVMBool LLVMCreateMCJITCompilerForModule( // NoFramePointerElim. for (auto &F : *Mod) { auto Attrs = F.getAttributes(); - auto Value = options.NoFramePointerElim ? "true" : "false"; + StringRef Value(options.NoFramePointerElim ? "true" : "false"); Attrs = Attrs.addAttribute(F.getContext(), AttributeSet::FunctionIndex, "no-frame-pointer-elim", Value); F.setAttributes(Attrs); |