Avoid a warning "'U' might be used uninitialized in
authorDuncan Sands <baldrick@free.fr>
Wed, 3 Jun 2009 12:05:18 +0000 (12:05 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 3 Jun 2009 12:05:18 +0000 (12:05 +0000)
this function" when using a not-too-smart compiler.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72768 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86FastISel.cpp

index b3667be0d035203b60298bcf7c898d6825342651..33332e4cf745097a24d89d3a0cbbbe472211c31f 100644 (file)
@@ -321,7 +321,7 @@ bool X86FastISel::X86FastEmitExtend(ISD::NodeType Opc, MVT DstVT,
 /// X86SelectAddress - Attempt to fill in an address from the given value.
 ///
 bool X86FastISel::X86SelectAddress(Value *V, X86AddressMode &AM, bool isCall) {
-  User *U;
+  User *U = NULL;
   unsigned Opcode = Instruction::UserOp1;
   if (Instruction *I = dyn_cast<Instruction>(V)) {
     Opcode = I->getOpcode();