mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-02 00:35:27 +00:00
A signed bitfield's range is [-1,0], so assigning 1 is technically an overflow. However, the other bitfield requires a signed value (it supports negative offsets), so it is slightly better to retain a signed 1-bit bitfield and use -1 instead of 1. Silences an MSVC warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260973 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4d9522f889
commit
ebdb0a36ca
@ -495,7 +495,7 @@ void CodeViewDebug::emitDebugInfoForFunction(const Function *GV,
|
||||
CodeViewDebug::LocalVarDefRange
|
||||
CodeViewDebug::createDefRangeMem(uint16_t CVRegister, int Offset) {
|
||||
LocalVarDefRange DR;
|
||||
DR.InMemory = 1;
|
||||
DR.InMemory = -1;
|
||||
DR.DataOffset = Offset;
|
||||
assert(DR.DataOffset == Offset && "truncation");
|
||||
DR.StructOffset = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user