diff options
author | Duncan Sands <baldrick@free.fr> | 2009-06-03 12:05:18 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-06-03 12:05:18 +0000 |
commit | 12513889fdeebc5d835aa6a46f75c73ea8ba1ba3 (patch) | |
tree | 1b1bafff68715141c736f4d4a3a6ee866e28f23d /lib/Target | |
parent | 05a8c87bb2020a294a3a48e33a61952f1adedb91 (diff) | |
download | external_llvm-12513889fdeebc5d835aa6a46f75c73ea8ba1ba3.zip external_llvm-12513889fdeebc5d835aa6a46f75c73ea8ba1ba3.tar.gz external_llvm-12513889fdeebc5d835aa6a46f75c73ea8ba1ba3.tar.bz2 |
Avoid a warning "'U' might be used uninitialized in
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
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/X86/X86FastISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp index b3667be..33332e4 100644 --- a/lib/Target/X86/X86FastISel.cpp +++ b/lib/Target/X86/X86FastISel.cpp @@ -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(); |