forked from OSchip/llvm-project
[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
This commit is contained in:
parent
2a09a6cfe2
commit
be9ade93d1
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue