diff options
author | Fangrui Song <maskray@google.com> | 2018-11-17 01:44:25 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2018-11-17 01:44:25 +0000 |
commit | 75709329774ba0596bcd99abe4037dacfe28a053 (patch) | |
tree | ec75e41ad7e05d81e381911b019f605d019ff5fe /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | a900471d58fda9c5c68b0177b912a3ea174b5d18 (diff) | |
download | bcm5719-llvm-75709329774ba0596bcd99abe4037dacfe28a053.tar.gz bcm5719-llvm-75709329774ba0596bcd99abe4037dacfe28a053.zip |
Use llvm::copy. NFC
llvm-svn: 347126
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 488481cec37..3ded00b70fd 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -435,7 +435,7 @@ MachineFunction::createMIExtraInfo(ArrayRef<MachineMemOperand *> MMOs, const char *MachineFunction::createExternalSymbolName(StringRef Name) { char *Dest = Allocator.Allocate<char>(Name.size() + 1); - std::copy(Name.begin(), Name.end(), Dest); + llvm::copy(Name, Dest); Dest[Name.size()] = 0; return Dest; } |