summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2015-02-10 07:35:39 +0000
committerLang Hames <lhames@gmail.com>2015-02-10 07:35:39 +0000
commit70f78e3906acc272b8bde38a2e655b588660bc62 (patch)
treeaedbdc852a51c1c6048e9fe4cf80c77448a822d1 /clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp
parent5b8cf29390ef1007655ef0d61737f046fd7c5f92 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud