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

            Bug ID: 43906
           Summary: [TargetLowering] Suspicious code found by PVS Studio
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp       1159    err     V763
Parameter 'Offset' is always rewritten in function body before being used.

  // The offset must consider the original displacement from the base symbol
  // since 32-bit targets don't have a GOTPCREL to fold the PC displacement.
  Offset = -MV.getConstant();

Maybe it should be:

  Offset -= MV.getConstant();

?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to