[flang-commits] [PATCH] D97395: [flang] add attribute to trim runtime implementation establish call
Jean Perier via Phabricator via flang-commits
flang-commits at lists.llvm.org
Wed Feb 24 09:54:54 PST 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb146dfe527ba: [flang] add attribute to trim runtime implementation establish call (authored by jeanPerier).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97395/new/
https://reviews.llvm.org/D97395
Files:
flang/runtime/character.cpp
Index: flang/runtime/character.cpp
===================================================================
--- flang/runtime/character.cpp
+++ flang/runtime/character.cpp
@@ -686,7 +686,8 @@
terminator.Crash(
"TRIM: bad string type code %d", static_cast<int>(string.raw().type));
}
- result.Establish(string.type(), resultBytes, nullptr, 0);
+ result.Establish(string.type(), resultBytes, nullptr, 0, nullptr,
+ CFI_attribute_allocatable);
RUNTIME_CHECK(terminator, result.Allocate(nullptr, nullptr) == CFI_SUCCESS);
std::memcpy(result.OffsetElement(), string.OffsetElement(), resultBytes);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97395.326127.patch
Type: text/x-patch
Size: 620 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210224/e531ffc3/attachment.bin>
More information about the flang-commits
mailing list