From: Simon Pilgrim Date: Wed, 8 May 2019 10:24:22 +0000 (+0000) Subject: [SIMode] Fix typo in Status constructor X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a166230ca7a1f448f93234813bc61c390f276ec;p=llvm [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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360236 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/AMDGPU/SIModeRegister.cpp b/lib/Target/AMDGPU/SIModeRegister.cpp index 197398a169b..a5edd7b3554 100644 --- a/lib/Target/AMDGPU/SIModeRegister.cpp +++ b/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; };