DebugInfo: Don't lose unreferenced non-trivial by-value parameters
[oota-llvm.git] / lib / Target / ARM / ARMFastISel.cpp
index 97dc63ff92bca920b62a4f64d49049957321120e..7f52749a8a3ebf4cf0f40278243eddbd55c421f6 100644 (file)
@@ -3030,8 +3030,6 @@ bool ARMFastISel::FastLowerArguments() {
   Idx = 0;
   for (Function::const_arg_iterator I = F->arg_begin(), E = F->arg_end();
        I != E; ++I, ++Idx) {
-    if (I->use_empty())
-      continue;
     unsigned SrcReg = GPRArgRegs[Idx];
     unsigned DstReg = FuncInfo.MF->addLiveIn(SrcReg, RC);
     // FIXME: Unfortunately it's necessary to emit a copy from the livein copy.