diff options
author | Lang Hames <lhames@gmail.com> | 2015-02-10 07:35:39 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2015-02-10 07:35:39 +0000 |
commit | 70f78e3906acc272b8bde38a2e655b588660bc62 (patch) | |
tree | aedbdc852a51c1c6048e9fe4cf80c77448a822d1 /clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp | |
parent | 5b8cf29390ef1007655ef0d61737f046fd7c5f92 (diff) | |
download | bcm5719-llvm-70f78e3906acc272b8bde38a2e655b588660bc62.tar.gz bcm5719-llvm-70f78e3906acc272b8bde38a2e655b588660bc62.zip |
[Orc] Fix a bug in the LazyEmittingLayer - capture names by value (as
std::strings) rather than StringRefs in JITSymbol get-address lambda.
Capturing a StringRef by-value is still effectively capturing a reference, which
is no good here because the referenced string may be gone by the time the lambda
is being evaluated the original value may be gone. Make sure to capture a
std::string instead.
No test case: This bug doesn't manifest under OrcMCJITReplacement, since it
keeps IR modules (from which the StringRefs are sourced) alive permanently.
llvm-svn: 228676
Diffstat (limited to 'clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp')
0 files changed, 0 insertions, 0 deletions