Skip to content

Commit 90b5afe

Browse files
committed
[TableGen][SourceMgr] Fix obvious mistake in D141220
It now tried to open the IncludedFile instead of the Filename, which was not intended.
1 parent 17a1936 commit 90b5afe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Support/SourceMgr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ErrorOr<std::unique_ptr<MemoryBuffer>>
5353
SourceMgr::OpenIncludeFile(const std::string &Filename,
5454
std::string &IncludedFile) {
5555
ErrorOr<std::unique_ptr<MemoryBuffer>> NewBufOrErr =
56-
MemoryBuffer::getFile(IncludedFile);
56+
MemoryBuffer::getFile(Filename);
5757

5858
SmallString<64> Buffer(Filename);
5959
// If the file didn't exist directly, see if it's in an include path.

0 commit comments

Comments
 (0)