forked from OSchip/llvm-project
Fix uninitialized memory read.
Found by msan. llvm-svn: 260676
This commit is contained in:
parent
8bc0caa2e9
commit
ac5e36f52e
|
@ -1816,8 +1816,8 @@ static bool isVOP3(OperandVector &Operands) {
|
|||
|
||||
if (Operands.size() > 3) {
|
||||
AMDGPUOperand &Src1Op = ((AMDGPUOperand&)*Operands[3]);
|
||||
if (Src1Op.getReg() && (Src1Op.isRegClass(AMDGPU::SReg_32RegClassID) ||
|
||||
Src1Op.isRegClass(AMDGPU::SReg_64RegClassID)))
|
||||
if (Src1Op.isReg() && (Src1Op.isRegClass(AMDGPU::SReg_32RegClassID) ||
|
||||
Src1Op.isRegClass(AMDGPU::SReg_64RegClassID)))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue