Skip to content

Conversation

SplitInfinity
Copy link

@SplitInfinity SplitInfinity commented Dec 8, 2020

Stack from ghstack:

Summary
BufferPolicy::valid uses !typ->is_parameter(i) to check if an
attribute is a buffer or not; it should use type->is_buffer(i) instead.

Test Plan
It is difficult to write an additional test that would have failed before this
commit because the two booleans is_parameter and is_buffer are never set
to true at the same time.

Fixes
This commit fixes #48746.

Differential Revision: D25434956

**Summary**
`BufferPolicy::valid` uses `!typ->is_parameter(i)` to check if an
attribute is a buffer or not; it should use `type->is_buffer(i)` instead.

**Test Plan**
It is difficult to write an additional test that would have failed before this
commit because the two booleans `is_parameter` and `is_buffer` are never set
to `true` at the same time.

**Fixes**
This commit fixes #48746.

[ghstack-poisoned]
@facebook-github-bot facebook-github-bot added cla signed oncall: jit Add this issue/PR to JIT oncall triage queue labels Dec 8, 2020
SplitInfinity pushed a commit that referenced this pull request Dec 8, 2020
**Summary**
`BufferPolicy::valid` uses `!typ->is_parameter(i)` to check if an
attribute is a buffer or not; it should use `type->is_buffer(i)` instead.

**Test Plan**
It is difficult to write an additional test that would have failed before this
commit because the two booleans `is_parameter` and `is_buffer` are never set
to `true` at the same time.

**Fixes**
This commit fixes #48746.

ghstack-source-id: e249dd1
Pull Request resolved: #49053
@codecov
Copy link

codecov bot commented Dec 9, 2020

Codecov Report

Merging #49053 (f71458b) into gh/splitinfinity/80/base (2b70bcd) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@                    Coverage Diff                    @@
##           gh/splitinfinity/80/base   #49053   +/-   ##
=========================================================
  Coverage                     80.74%   80.74%           
=========================================================
  Files                          1870     1870           
  Lines                        201724   201724           
=========================================================
+ Hits                         162877   162886    +9     
+ Misses                        38847    38838    -9     

@facebook-github-bot
Copy link
Contributor

@SplitInfinity merged this pull request in a480ca5.

@facebook-github-bot
Copy link
Contributor

This pull request has been reverted by b5b8fe9.

@facebook-github-bot facebook-github-bot deleted the gh/splitinfinity/80/head branch December 14, 2020 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed Merged oncall: jit Add this issue/PR to JIT oncall triage queue Reverted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants