mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-27 02:31:09 +00:00
[mips] Fix use of uninitialized value reported by the sanitizer-x86_64-linux-bootstrap buildbot
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205213 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
416a0e993f
commit
775a94fd57
@ -467,6 +467,7 @@ public:
|
|||||||
static MipsOperand *CreateReg(unsigned RegNum, SMLoc S, SMLoc E) {
|
static MipsOperand *CreateReg(unsigned RegNum, SMLoc S, SMLoc E) {
|
||||||
MipsOperand *Op = new MipsOperand(k_Register);
|
MipsOperand *Op = new MipsOperand(k_Register);
|
||||||
Op->Reg.RegNum = RegNum;
|
Op->Reg.RegNum = RegNum;
|
||||||
|
Op->Reg.Kind = Kind_None;
|
||||||
Op->StartLoc = S;
|
Op->StartLoc = S;
|
||||||
Op->EndLoc = E;
|
Op->EndLoc = E;
|
||||||
return Op;
|
return Op;
|
||||||
@ -475,6 +476,7 @@ public:
|
|||||||
static MipsOperand *CreatePtrReg(unsigned RegNum, SMLoc S, SMLoc E) {
|
static MipsOperand *CreatePtrReg(unsigned RegNum, SMLoc S, SMLoc E) {
|
||||||
MipsOperand *Op = new MipsOperand(k_PtrReg);
|
MipsOperand *Op = new MipsOperand(k_PtrReg);
|
||||||
Op->Reg.RegNum = RegNum;
|
Op->Reg.RegNum = RegNum;
|
||||||
|
Op->Reg.Kind = Kind_None;
|
||||||
Op->StartLoc = S;
|
Op->StartLoc = S;
|
||||||
Op->EndLoc = E;
|
Op->EndLoc = E;
|
||||||
return Op;
|
return Op;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user