We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d0935c commit 15db3f8Copy full SHA for 15db3f8
flang/lib/Evaluate/call.cpp
@@ -281,6 +281,16 @@ static void DetermineCopyInOutArgument(
281
if (actual.isAlternateReturn()) {
282
return;
283
}
284
+ const auto *dummyObj = std::get_if<characteristics::DummyDataObject>(&dummy.u);
285
+ if (!dummyObj) {
286
+ // Only DummyDataObject has the information we need
287
+ return;
288
+ }
289
+ // Check actual contiguity, unless dummy doesn't care
290
+ bool actualContiguous = dummyObj->ignoreTKR.test(common::IgnoreTKR::Contiguous)
291
+ || IsSimplyContiguous(actual, sc.foldingContext());
292
+ bool actualVectorSubscript = HasVectorSubscript(actual);
293
+
294
// TODO
295
296
0 commit comments