mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-21 21:41:43 +00:00
Fix buggy error message problem
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11379 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a92666decd
commit
83fe91797a
@ -126,12 +126,13 @@ static void HandleInclude(const char *Buffer) {
|
||||
//
|
||||
// NOTE: Right now, there is only one directory. We need to eventually add
|
||||
// support for more.
|
||||
Filename = IncludeDirectory + "/" + Filename;
|
||||
yyin = fopen(Filename.c_str(), "r");
|
||||
std::string NextFilename = IncludeDirectory + "/" + Filename;
|
||||
yyin = fopen(NextFilename.c_str(), "r");
|
||||
if (yyin == 0) {
|
||||
err() << "Could not find include file '" << Filename << "'!\n";
|
||||
abort();
|
||||
}
|
||||
Filename = NextFilename;
|
||||
}
|
||||
|
||||
// Add the file to our include stack...
|
||||
|
Loading…
x
Reference in New Issue
Block a user