diff options
author | Chris Lattner <sabre@nondot.org> | 2008-02-01 05:34:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-02-01 05:34:02 +0000 |
commit | 9415a0cc93117b69add4e1dc0f11146f3479ee1a (patch) | |
tree | 6fbb814cc29574c3e58ae8acf161afb8751db3b4 /Lex/HeaderSearch.cpp | |
parent | f7682b039609e1394f0f711de11ab3fb640289f2 (diff) |
Fix PR1969. stdin has no FileEntry.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46629 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Lex/HeaderSearch.cpp')
-rw-r--r-- | Lex/HeaderSearch.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lex/HeaderSearch.cpp b/Lex/HeaderSearch.cpp index e4f7aeb806..bd36f35d49 100644 --- a/Lex/HeaderSearch.cpp +++ b/Lex/HeaderSearch.cpp @@ -293,6 +293,8 @@ const FileEntry *HeaderSearch:: LookupSubframeworkHeader(const char *FilenameStart, const char *FilenameEnd, const FileEntry *ContextFileEnt) { + assert(ContextFileEnt && "No context file?"); + // Framework names must have a '/' in the filename. Find it. const char *SlashPos = std::find(FilenameStart, FilenameEnd, '/'); if (SlashPos == FilenameEnd) return 0; |