summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Remarks/RemarkStringTable.cpp
diff options
context:
space:
mode:
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>2019-09-16 22:45:17 +0000
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>2019-09-16 22:45:17 +0000
commit77383d83eb3fd5db26f985d7a9404d7a00f86bc0 (patch)
treeb89b849849fe08e6ba50faa8171587895c165bf6 /llvm/lib/Remarks/RemarkStringTable.cpp
parentc693aa3def0191634d1dac78ff1b62ef629a89bc (diff)
downloadbcm5719-llvm-77383d83eb3fd5db26f985d7a9404d7a00f86bc0.tar.gz
bcm5719-llvm-77383d83eb3fd5db26f985d7a9404d7a00f86bc0.zip
[Remarks] Allow remarks::Format::YAML to take a string table
It should be allowed to take a string table in case all the strings in the remarks point there, but it shouldn't use it during serialization. llvm-svn: 372042
Diffstat (limited to 'llvm/lib/Remarks/RemarkStringTable.cpp')
-rw-r--r--llvm/lib/Remarks/RemarkStringTable.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Remarks/RemarkStringTable.cpp b/llvm/lib/Remarks/RemarkStringTable.cpp
index 0f8a95acdba..51156465be5 100644
--- a/llvm/lib/Remarks/RemarkStringTable.cpp
+++ b/llvm/lib/Remarks/RemarkStringTable.cpp
@@ -46,7 +46,6 @@ void StringTable::internalize(Remark &R) {
if (R.Loc)
Impl(R.Loc->SourceFilePath);
for (Argument &Arg : R.Args) {
- // We need to mutate elements from an ArrayRef here.
Impl(Arg.Key);
Impl(Arg.Val);
if (Arg.Loc)
OpenPOWER on IntegriCloud