[llvm-commits] [llvm-gcc-4.2] r78124 - /llvm-gcc-4.2/trunk/gcc/config/arm/llvm-arm.cpp
Bob Wilson
bob.wilson at apple.com
Tue Aug 4 16:43:04 PDT 2009
Author: bwilson
Date: Tue Aug 4 18:42:46 2009
New Revision: 78124
URL: http://llvm.org/viewvc/llvm-project?rev=78124&view=rev
Log:
More initialization to avoid warnings.
Modified:
llvm-gcc-4.2/trunk/gcc/config/arm/llvm-arm.cpp
Modified: llvm-gcc-4.2/trunk/gcc/config/arm/llvm-arm.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/arm/llvm-arm.cpp?rev=78124&r1=78123&r2=78124&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/arm/llvm-arm.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/config/arm/llvm-arm.cpp Tue Aug 4 18:42:46 2009
@@ -269,7 +269,7 @@
std::vector<Value*> &Ops) {
neon_datatype datatype = neon_datatype_unspecified;
bool isRounded = false;
- Intrinsic::ID intID;
+ Intrinsic::ID intID = Intrinsic::not_intrinsic;
Function *intFn;
const Type* intOpTypes[2];
@@ -2013,7 +2013,7 @@
case NEON_BUILTIN_vld4_lane: {
const VectorType *VTy =
GetVldstType(exp, insn_data[icode].operand[0].mode);
- unsigned LaneVal, NumVecs;
+ unsigned LaneVal, NumVecs = 0;
switch (neon_code) {
case NEON_BUILTIN_vld1_lane: NumVecs = 1; break;
case NEON_BUILTIN_vld2_lane: NumVecs = 2; break;
@@ -2140,7 +2140,7 @@
case NEON_BUILTIN_vst4_lane: {
const VectorType *VTy =
GetVldstType(exp, insn_data[icode].operand[1].mode);
- unsigned LaneVal, NumVecs;
+ unsigned LaneVal, NumVecs = 0;
switch (neon_code) {
case NEON_BUILTIN_vst1_lane: NumVecs = 1; break;
case NEON_BUILTIN_vst2_lane: NumVecs = 2; break;
More information about the llvm-commits
mailing list