1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

Avoid a compiler warning about reg possibly being used uninitialized

when building with assertions disabled.

llvm-svn: 127675
This commit is contained in:
Duncan Sands 2011-03-15 08:41:24 +00:00
parent 7947e73536
commit fc3e4d63e1

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();