This is an archive of the discontinued LLVM Phabricator instance.

[InferAttrs] Do not mark first argument of str(n)cat as writeonly.
ClosedPublic

Authored by fhahn on Apr 15 2021, 2:40 PM.

Details

Summary

str(n)cat appends a copy of the second argument to the end of the first
argument. To find the end of the first argument, str(n)cat has to read
from it until it finds the terminating 0. So it should not be marked as
writeonly. I think this means the argument should not be marked as
writeonly.

(This is causing a mis-compile with legacy DSE (before it got removed))

Diff Detail

Event Timeline

fhahn created this revision.Apr 15 2021, 2:40 PM
fhahn requested review of this revision.Apr 15 2021, 2:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 15 2021, 2:40 PM
This revision is now accepted and ready to land.Apr 15 2021, 2:45 PM
This revision was landed with ongoing or failed builds.Apr 15 2021, 3:00 PM
This revision was automatically updated to reflect the committed changes.
fhahn added a comment.Apr 15 2021, 3:01 PM

Thanks for taking a look! :)