[llvm-bugs] [Bug 47535] New: AMDGPULegalizerInfo::legalizeBufferLoad declaration/definition mismatch

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 15 09:29:29 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=47535

            Bug ID: 47535
           Summary: AMDGPULegalizerInfo::legalizeBufferLoad
                    declaration/definition mismatch
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: AMDGPU
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm-dev at redking.me.uk
                CC: llvm-bugs at lists.llvm.org, Matthew.Arsenault at amd.com

The IsTyped and IsFormat bool flags are flipped between the header declaration
and the actual implementation, which suggests they may have been used
incorrectly.

AMDGPULegalizerInfo.h

  bool legalizeBufferLoad(MachineInstr &MI, MachineRegisterInfo &MRI,
                          MachineIRBuilder &B, bool IsTyped,
                          bool IsFormat) const;

AMDGPULegalizerInfo.cpp

bool AMDGPULegalizerInfo::legalizeBufferLoad(MachineInstr &MI,
                                             MachineRegisterInfo &MRI,
                                             MachineIRBuilder &B,
                                             bool IsFormat,
                                             bool IsTyped) const


Reported by cppcheck.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200915/65dd5762/attachment.html>


More information about the llvm-bugs mailing list