[llvm-bugs] [Bug 43906] New: [TargetLowering] Suspicious code found by PVS Studio
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Nov 5 05:04:00 PST 2019
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: unassignedbugs at nondot.org
Reporter: david.bolvansky at gmail.com
CC: craig.topper at gmail.com, llvm-bugs at lists.llvm.org,
llvm-dev at redking.me.uk, spatel+llvm at rotateright.com
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191105/2ff9ca1f/attachment.html>
More information about the llvm-bugs
mailing list