This is an archive of the discontinued LLVM Phabricator instance.

Remove immarg from llvm.expect
ClosedPublic

Authored by arsenm on Mar 15 2019, 3:14 PM.

Details

Reviewers
hfinkel
Summary

The LangRef claimed this was required to be a constant, but this
appears to be wrong.

Fixes bug 41079.

Diff Detail

Event Timeline

arsenm created this revision.Mar 15 2019, 3:14 PM
hfinkel accepted this revision.Mar 15 2019, 3:39 PM

LGTM. Maybe we can also add the test case from the PR as one of Clang's regression tests?

This revision is now accepted and ready to land.Mar 15 2019, 3:39 PM

r356353, r356354

arsenm closed this revision.Mar 17 2019, 4:15 PM