ScheduleDAGInstrs: In functions with tail calls PseudoSourceValues are not non-aliasi...
[oota-llvm.git] / lib / Target / ARM / ARMISelLowering.cpp
index b1c0b85e500cdbce5eb28f87bb546e09c9ab65f5..a3743d452e0785b06ac48d273c74812ea774a5f0 100644 (file)
@@ -1847,8 +1847,10 @@ ARMTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
     Ops.push_back(InFlag);
 
   SDVTList NodeTys = DAG.getVTList(MVT::Other, MVT::Glue);
-  if (isTailCall)
+  if (isTailCall) {
+    MF.getFrameInfo()->setHasTailCall();
     return DAG.getNode(ARMISD::TC_RETURN, dl, NodeTys, Ops);
+  }
 
   // Returns a chain and a flag for retval copy to use.
   Chain = DAG.getNode(CallOpc, dl, NodeTys, Ops);