mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 23:48:56 +00:00
Ensure OpCode is not used uninitialized.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141184 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
72478e6046
commit
62c607b741
@ -125,8 +125,10 @@ SDNode *PTXDAGToDAGISel::SelectREADPARAM(SDNode *Node) {
|
||||
OpCode = PTX::READPARAMI64;
|
||||
else if (Type == MVT::f32)
|
||||
OpCode = PTX::READPARAMF32;
|
||||
else if (Type == MVT::f64)
|
||||
else {
|
||||
assert(Type == MVT::f64 && "Unexpected type!");
|
||||
OpCode = PTX::READPARAMF64;
|
||||
}
|
||||
|
||||
SDValue Pred = CurDAG->getRegister(PTX::NoRegister, MVT::i1);
|
||||
SDValue PredOp = CurDAG->getTargetConstant(PTXPredicate::None, MVT::i32);
|
||||
|
Loading…
Reference in New Issue
Block a user