Fix behavior of clang-format's -cursor flag.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182386 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/clang-format/ClangFormat.cpp b/tools/clang-format/ClangFormat.cpp
index 340ef55..7642003 100644
--- a/tools/clang-format/ClangFormat.cpp
+++ b/tools/clang-format/ClangFormat.cpp
@@ -226,7 +226,7 @@
       Rewrite.getEditBuffer(ID).write(FileStream);
       FileStream.flush();
     } else {
-      if (Cursor != 0)
+      if (Cursor.getNumOccurrences() != 0)
         outs() << "{ \"Cursor\": " << tooling::shiftedCodePosition(
                                           Replaces, Cursor) << " }\n";
       Rewrite.getEditBuffer(ID).write(outs());