OSDN Git Service

[ThinLTO] Make a copy of buffer identifier in ThinLTOCodeGenerator
authorMehdi Amini <mehdi.amini@apple.com>
Tue, 14 Feb 2017 02:20:51 +0000 (02:20 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Tue, 14 Feb 2017 02:20:51 +0000 (02:20 +0000)
commit9053d357baecccf1399f934c5faea2b2e6c0a742
tree9909dfa38524eb8772822e0a52f89840ca432acb
parent33ee99ac2229b207b284fa1020367cd3a6cdedc2
[ThinLTO] Make a copy of buffer identifier in ThinLTOCodeGenerator

We can't assume that the `const char *` provided through libLTO has a
lifetime that expands beyond the codegenerator itself.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295018 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/LTO/legacy/ThinLTOCodeGenerator.h
lib/LTO/ThinLTOCodeGenerator.cpp