diff --git a/src/CppParser/Parser.cpp b/src/CppParser/Parser.cpp
index 919e0e0a..a7cbfe63 100644
--- a/src/CppParser/Parser.cpp
+++ b/src/CppParser/Parser.cpp
@@ -4368,7 +4368,7 @@ ParserResult* Parser::ParseLibrary(const std::string& File)
             break;
     }
 
-    if (FileEntry.empty())
+    if (FileEntry.empty() || !llvm::sys::fs::exists(FileEntry))
     {
         res->kind = ParserResultKind::FileNotFound;
         return res;