when emitting errors about CHECK-NEXT directives, show the line that the 
CHECK-NEXT is on.

llvm-svn: 79164
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp
index f051e9e..c092ded 100644
--- a/llvm/utils/FileCheck/FileCheck.cpp
+++ b/llvm/utils/FileCheck/FileCheck.cpp
@@ -325,19 +325,23 @@
 
       unsigned NumNewLines = CountNumNewlinesBetween(LastMatch, Ptr);
       if (NumNewLines == 0) {
-        SM.PrintMessage(SMLoc::getFromPointer(Ptr),
+        SM.PrintMessage(CheckStr.Loc,
                     CheckPrefix+"-NEXT: is on the same line as previous match",
                         "error");
+        SM.PrintMessage(SMLoc::getFromPointer(Ptr),
+                        "'next' match was here", "note");
         SM.PrintMessage(SMLoc::getFromPointer(LastMatch),
                         "previous match was here", "note");
         return 1;
       }
       
       if (NumNewLines != 1) {
-        SM.PrintMessage(SMLoc::getFromPointer(Ptr),
+        SM.PrintMessage(CheckStr.Loc,
                         CheckPrefix+
                         "-NEXT: is not on the line after the previous match",
                         "error");
+        SM.PrintMessage(SMLoc::getFromPointer(Ptr),
+                        "'next' match was here", "note");
         SM.PrintMessage(SMLoc::getFromPointer(LastMatch),
                         "previous match was here", "note");
         return 1;