This patch allows using of ExprWithCleanups expressions and other complex expressions in 'omp atomic' construct
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
You should generally not ignore surrounding expressions and statement in IRGen, and you *definitely* shouldn't IgnoreImplicit. If you want to strip off ExprWithCleanups, you should check specifically for that.
Comment Actions
John, you're right, I'll rework the patch. Actually, all other surrounding expressions are not allowed in atomics and would be filtered later, during deeper expression analysis. But generally you're right, IgnoreImplicit() is too rough.