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 66328d5 commit 9c2688fCopy full SHA for 9c2688f
flang/lib/Lower/IterationSpace.cpp
@@ -244,7 +244,10 @@ void Fortran::lower::ExplicitIterSpace::bindLoad(
244
[&](const auto *p) {
245
using T = std::remove_cv_t<std::remove_pointer_t<decltype(p)>>;
246
void *vp = static_cast<void *>(const_cast<T *>(p));
247
- assert(!loadBindings.count(vp) && "duplicate key");
+ if constexpr (!std::is_same_v<T, Fortran::semantics::Symbol>) {
248
+ // Se::Symbol* are inalienably shared; never assert on them.
249
+ assert(!loadBindings.count(vp) && "duplicate key");
250
+ }
251
loadBindings.try_emplace(vp, load);
252
},
253
base);
0 commit comments