mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-03 14:21:30 +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:
@@ -467,6 +467,7 @@ public:
|
||||
static MipsOperand *CreateReg(unsigned RegNum, SMLoc S, SMLoc E) {
|
||||
MipsOperand *Op = new MipsOperand(k_Register);
|
||||
Op->Reg.RegNum = RegNum;
|
||||
Op->Reg.Kind = Kind_None;
|
||||
Op->StartLoc = S;
|
||||
Op->EndLoc = E;
|
||||
return Op;
|
||||
@@ -475,6 +476,7 @@ public:
|
||||
static MipsOperand *CreatePtrReg(unsigned RegNum, SMLoc S, SMLoc E) {
|
||||
MipsOperand *Op = new MipsOperand(k_PtrReg);
|
||||
Op->Reg.RegNum = RegNum;
|
||||
Op->Reg.Kind = Kind_None;
|
||||
Op->StartLoc = S;
|
||||
Op->EndLoc = E;
|
||||
return Op;
|
||||
|
||||
Reference in New Issue
Block a user