aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/WasmObjectFile.cpp
diff options
context:
space:
mode:
authorJessica Paquette <jpaquette@apple.com>2017-08-31 20:47:37 +0000
committerJessica Paquette <jpaquette@apple.com>2017-08-31 20:47:37 +0000
commit0dfd8c880b518896e5f015904af05be3148f1292 (patch)
treec1ea2b744dd31862c6f3f0406a14fe513baeb9d9 /llvm/lib/Object/WasmObjectFile.cpp
parent99c6982bcd8f2990db560e580f7909827f62deef (diff)
downloadllvm-0dfd8c880b518896e5f015904af05be3148f1292.zip
llvm-0dfd8c880b518896e5f015904af05be3148f1292.tar.gz
llvm-0dfd8c880b518896e5f015904af05be3148f1292.tar.bz2
[NFC] Change Key in Argument to a std::string
Before, Key was a StringRef to avoid unnecessary copies. This commit changes that to a std::string. This was okay previously because when people called emit for remarks before, they would create the remark *within* the call to emit. However, if you build the remark up and call emit *afterward*, it's possible to end up freeing the memory assigned to the StringRef before the call to emit. This caused a test failure with https://reviews.llvm.org/D37085 on Linux. Since building remarks before a call to emit is a valid use-case, it makes sense to replace this with a std::string. llvm-svn: 312277
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions