[llvm-commits] [llvm] r74775 - /llvm/trunk/include/llvm/Target/TargetLowering.h

Duncan Sands baldrick at free.fr
Fri Jul 3 09:00:23 PDT 2009


Author: baldrick
Date: Fri Jul  3 11:00:23 2009
New Revision: 74775

URL: http://llvm.org/viewvc/llvm-project?rev=74775&view=rev
Log:
In this unreachable code, return an initialized value.
This stops gcc warning about possible uses of an uninitialized
value when compiling with assertions turned off.

Modified:
    llvm/trunk/include/llvm/Target/TargetLowering.h

Modified: llvm/trunk/include/llvm/Target/TargetLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetLowering.h?rev=74775&r1=74774&r2=74775&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Target/TargetLowering.h (original)
+++ llvm/trunk/include/llvm/Target/TargetLowering.h Fri Jul  3 11:00:23 2009
@@ -256,7 +256,7 @@
         return getTypeAction(NVT) == Promote ? getTypeToTransformTo(NVT) : NVT;
     }
     assert(0 && "Unsupported extended type!");
-    return MVT(); // Not reached
+    return MVT(MVT::Other); // Not reached
   }
 
   /// getTypeToExpandTo - For types supported by the target, this is an
@@ -557,7 +557,7 @@
       return getRegisterType(getTypeToTransformTo(VT));
     }
     assert(0 && "Unsupported extended type!");
-    return MVT(); // Not reached
+    return MVT(MVT::Other); // Not reached
   }
 
   /// getNumRegisters - Return the number of registers that this ValueType will





More information about the llvm-commits mailing list