patches/llvm/src/lib/CodeGen/StackTransformMetadata.cpp
static inline void displayWarning(std::string &Msg,
                                  const CallInst *CI,
                                  const Function *F) {
  assert(CI && "Invalid arguments");

  // Note: it may be possible for us to not have a called function, for example
  // if we call a function using a function pointer
  const Function *CurF = CI->getParent()->getParent();
  if(F && F->hasName()) {
    Msg += " across call to ";
    Msg += F->getName();
  }
  DiagnosticInfoOptimizationFailure DI(*CurF, CI->getDebugLoc(), Msg);
  CurF->getContext().diagnose(DI);
}
/// Display a warning about unhandled values
Display a warning about unhandled values
Display a warning about unhandled values
static inline void displayWarning(std::string &Msg,
                                  const CallInst *CI,
                                  const Function *F) {
  assert(CI && "Invalid arguments");
  const Function *CurF = CI->getParent()->getParent();
  if(F && F->hasName()) {
    Msg += " across call to ";
    Msg += F->getName();
  }
  DiagnosticInfoOptimizationFailure DI(*CurF, CI->getDebugLoc(), Msg);
  CurF->getContext().diagnose(DI);
}
static inline void displayWarning ( std :: string & Msg , const CallInst * CI , const Function * F ) { assert ( CI && " " ) ; const Function * CurF = CI -> getParent ( ) -> getParent ( ) ; if ( F && F -> hasName ( ) ) { Msg += " " ; Msg += F -> getName ( ) ; } DiagnosticInfoOptimizationFailure DI ( * CurF , CI -> getDebugLoc ( ) , Msg ) ; CurF -> getContext ( ) . diagnose ( DI ) ; }
Display a warning about unhandled values
Display a warning about unhandled values
// Note: it may be possible for us to not have a called function, for example // if we call a function using a function pointer