This is an archive of the discontinued LLVM Phabricator instance.

[mips] Make checks in CodeGen/mips-varargs.c less fragile
ClosedPublic

Authored by arichardson on Apr 24 2017, 3:48 AM.

Details

Summary

This test was failing on our fork of clang because it was not capturing
[[ARG]] in the N32 case. Therefore it used the value from the last function
which does not always have to be the same. All other cases were already
capturing ARG so this appears to be an oversight.
The test now uses -enable-var-scope to prevent such errors in the future.

Diff Detail

Repository
rL LLVM

Event Timeline

arichardson created this revision.Apr 24 2017, 3:48 AM
arichardson set the repository for this revision to rL LLVM.Apr 24 2017, 3:49 AM
arichardson added a subscriber: llvm-commits.
sdardis edited edge metadata.Apr 24 2017, 7:17 AM

This needs to be posted to cfe-commits, not llvm-commits.

arichardson edited subscribers, added: cfe-commits; removed: llvm-commits.Apr 24 2017, 7:18 AM
arichardson updated this revision to Diff 98059.May 6 2017, 6:12 AM
arichardson retitled this revision from [mips] Make N32 checks in CodeGen/mips-varargs.c less fragile to [mips] Make checks in CodeGen/mips-varargs.c less fragile.
arichardson edited the summary of this revision. (Show Details)

Used -enable-var-scope to ensure we don't reuse a capture from a preivous function

sdardis accepted this revision.May 22 2017, 6:49 AM

LGTM,,

This revision is now accepted and ready to land.May 22 2017, 6:49 AM

I don't have commit access, could you commit for me please?

This revision was automatically updated to reflect the committed changes.