[PATCH] D113258: [flang] Set the addendum when establishing pointer section in descriptor
Jean Perier via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 8 02:07:03 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG437543068935: [flang] Set the addendum when establishing pointer section in descriptor (authored by jeanPerier).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113258/new/
https://reviews.llvm.org/D113258
Files:
flang/runtime/descriptor.cpp
Index: flang/runtime/descriptor.cpp
===================================================================
--- flang/runtime/descriptor.cpp
+++ flang/runtime/descriptor.cpp
@@ -241,6 +241,13 @@
}
}
raw_.rank = newRank;
+ if (const auto *sourceAddendum = source.Addendum()) {
+ if (auto *addendum{Addendum()}) {
+ *addendum = *sourceAddendum;
+ } else {
+ return false;
+ }
+ }
return CFI_section(&raw_, &source.raw_, lower, upper, stride) == CFI_SUCCESS;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113258.385426.patch
Type: text/x-patch
Size: 492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211108/7a8f5f66/attachment.bin>
More information about the llvm-commits
mailing list