[llvm-commits] [llvm] r127675 - /llvm/trunk/lib/Target/PTX/PTXISelLowering.cpp
Duncan Sands
baldrick at free.fr
Tue Mar 15 01:41:24 PDT 2011
Author: baldrick
Date: Tue Mar 15 03:41:24 2011
New Revision: 127675
URL: http://llvm.org/viewvc/llvm-project?rev=127675&view=rev
Log:
Avoid a compiler warning about reg possibly being used uninitialized
when building with assertions disabled.
Modified:
llvm/trunk/lib/Target/PTX/PTXISelLowering.cpp
Modified: llvm/trunk/lib/Target/PTX/PTXISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PTX/PTXISelLowering.cpp?rev=127675&r1=127674&r2=127675&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PTX/PTXISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/PTX/PTXISelLowering.cpp Tue Mar 15 03:41:24 2011
@@ -212,11 +212,9 @@
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();
More information about the llvm-commits
mailing list