diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-05-08 10:24:22 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-05-08 10:24:22 +0000 |
| commit | be9ade93d164bccf89d4b2f5bd61647c63e09355 (patch) | |
| tree | 81d83ca052b22fba4e31f74f36cc3ca9c5d83be3 /llvm/lib | |
| parent | 2a09a6cfe2084a0ec869f937b20bc140fff0dbcb (diff) | |
| download | bcm5719-llvm-be9ade93d164bccf89d4b2f5bd61647c63e09355.tar.gz bcm5719-llvm-be9ade93d164bccf89d4b2f5bd61647c63e09355.zip | |
[SIMode] Fix typo in Status constructor
As noted in https://www.viva64.com/en/b/0629/ (Snippet No. 36) and the scan-build CI reports (https://llvm.org/reports/scan-build/report-SIModeRegister.cpp-Status-1-1.html#EndPath), rL348754 introduced a typo in the Status constructor due to argument variable names shadowing the member variable names.
Differential Revision: https://reviews.llvm.org/D61595
llvm-svn: 360236
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/SIModeRegister.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIModeRegister.cpp b/llvm/lib/Target/AMDGPU/SIModeRegister.cpp index 197398a169b..a5edd7b3554 100644 --- a/llvm/lib/Target/AMDGPU/SIModeRegister.cpp +++ b/llvm/lib/Target/AMDGPU/SIModeRegister.cpp @@ -44,7 +44,7 @@ struct Status { Status() : Mask(0), Mode(0){}; - Status(unsigned Mask, unsigned Mode) : Mask(Mask), Mode(Mode) { + Status(unsigned NewMask, unsigned NewMode) : Mask(NewMask), Mode(NewMode) { Mode &= Mask; }; |

