Silence a spurious warning
authorChris Lattner <sabre@nondot.org>
Sat, 10 Apr 2004 18:32:01 +0000 (18:32 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 10 Apr 2004 18:32:01 +0000 (18:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12815 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/InstSelectSimple.cpp
lib/Target/X86/X86ISelSimple.cpp

index 7a1f54e6061bfae23048e3f9114675b520482980..98587829fd091bf0f0fc52e943f21f4909b9ff0a 100644 (file)
@@ -2670,7 +2670,7 @@ void ISel::emitCastOperation(MachineBasicBlock *BB,
     // a larger signed value, then use FLD on the larger value.
     //
     const Type *PromoteType = 0;
-    unsigned PromoteOpcode;
+    unsigned PromoteOpcode = 0;
     unsigned RealDestReg = DestReg;
     switch (SrcTy->getPrimitiveID()) {
     case Type::BoolTyID:
index 7a1f54e6061bfae23048e3f9114675b520482980..98587829fd091bf0f0fc52e943f21f4909b9ff0a 100644 (file)
@@ -2670,7 +2670,7 @@ void ISel::emitCastOperation(MachineBasicBlock *BB,
     // a larger signed value, then use FLD on the larger value.
     //
     const Type *PromoteType = 0;
-    unsigned PromoteOpcode;
+    unsigned PromoteOpcode = 0;
     unsigned RealDestReg = DestReg;
     switch (SrcTy->getPrimitiveID()) {
     case Type::BoolTyID: