only notify callbacks if they exist.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62334 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Lex/Pragma.cpp b/lib/Lex/Pragma.cpp
index 6087774..667e436 100644
--- a/lib/Lex/Pragma.cpp
+++ b/lib/Lex/Pragma.cpp
@@ -400,7 +400,8 @@
   }
   
   // If the pragma is lexically sound, notify any interested PPCallbacks.
-  Callbacks->PragmaComment(CommentLoc, II, ArgumentString);
+  if (Callbacks)
+    Callbacks->PragmaComment(CommentLoc, II, ArgumentString);
 }