This is an archive of the discontinued LLVM Phabricator instance.

clang-cl: Evaluate arguments left-to-right in constructor call with initializer list (PR31831)
ClosedPublic

Authored by hans on Jan 31 2017, 2:27 PM.

Details

Summary

clang-cl would evaluate the arguments right-to-left (see PR), and for non-Windows targets I suppose we only got it because we were already emitting left-to-right in CodeGenFunction::EmitCallArgs.

Diff Detail

Repository
rL LLVM

Event Timeline

hans created this revision.Jan 31 2017, 2:27 PM
rnk accepted this revision.Jan 31 2017, 6:15 PM

lgtm

Can you check if we got this wrong in clang 3.8 and 3.9? I'm wondering if this was a regression, or if we always got this wrong.

This revision is now accepted and ready to land.Jan 31 2017, 6:15 PM
hans added a comment.Jan 31 2017, 6:21 PM
In D29350#662525, @rnk wrote:

Can you check if we got this wrong in clang 3.8 and 3.9? I'm wondering if this was a regression, or if we always got this wrong.

I tried back to 3.5, and it seems we just always got it wrong.

This revision was automatically updated to reflect the committed changes.