Avoid a compiler warning about reg possibly being used uninitialized

when building with assertions disabled.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127675 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands 2011-03-15 08:41:24 +00:00
parent 838b97edfa
commit 75548de301

View File

@ -212,11 +212,9 @@ SDValue PTXTargetLowering::
else if (Outs[0].VT == MVT::f32) {
reg = PTX::F0;
}
else if (Outs[0].VT == MVT::f64) {
reg = PTX::FD0;
}
else {
assert(false && "Can return only basic types");
assert(Outs[0].VT == MVT::f64 && "Can return only basic types");
reg = PTX::FD0;
}
MachineFunction &MF = DAG.getMachineFunction();