DebugInfo: Don't lose unreferenced non-trivial by-value parameters
[oota-llvm.git] / lib / Target / X86 / X86FastISel.cpp
index 295a577155426543d506a708f16525522d3d6b5a..669108f2563ce32e4a018c15553cdf931b719180 100644 (file)
@@ -1732,8 +1732,6 @@ bool X86FastISel::FastLowerArguments() {
   const TargetRegisterClass *RC64 = TLI.getRegClassFor(MVT::i64);
   for (Function::const_arg_iterator I = F->arg_begin(), E = F->arg_end();
        I != E; ++I, ++Idx) {
-    if (I->use_empty())
-      continue;
     bool is32Bit = TLI.getValueType(I->getType()) == MVT::i32;
     const TargetRegisterClass *RC = is32Bit ? RC32 : RC64;
     unsigned SrcReg = is32Bit ? GPR32ArgRegs[Idx] : GPR64ArgRegs[Idx];