Cleanup places that passed SMLoc by const reference to pass it by value instead. NFC
[oota-llvm.git] / utils / FileCheck / FileCheck.cpp
index efccf12348bbb3afd259572d4e98176a5d588ffb..50d324a5e4649786cfc2f64756fa2f0dc983401e 100644 (file)
@@ -975,7 +975,7 @@ static bool ReadCheckFile(SourceMgr &SM,
   return false;
 }
 
-static void PrintCheckFailed(const SourceMgr &SM, const SMLoc &Loc,
+static void PrintCheckFailed(const SourceMgr &SM, SMLoc Loc,
                              const Pattern &Pat, StringRef Buffer,
                              StringMap<StringRef> &VariableTable) {
   // Otherwise, we have an error, emit an error message.