The getMessage method of SMDiagnostic has been changed to return a StringRef
rather than a std::string.