OSDN Git Service

[SIMode] Fix typo in Status constructor
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 8 May 2019 10:24:22 +0000 (10:24 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 8 May 2019 10:24:22 +0000 (10:24 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360236 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AMDGPU/SIModeRegister.cpp

index 197398a..a5edd7b 100644 (file)
@@ -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;
   };