diff options
author | Markus Böck <markus.boeck02@gmail.com> | 2023-01-09 11:16:56 +0100 |
---|---|---|
committer | Markus Böck <markus.boeck02@gmail.com> | 2023-01-09 11:16:56 +0100 |
commit | 90b5afeb652e4073d72a513dbdff9c6e1ec10688 (patch) | |
tree | 36a22dd5df6589b33a2f50f69ed0146c1ef14768 /llvm/lib/Support/SourceMgr.cpp | |
parent | 17a19361223d567c154344f1065b315a93ddc4ba (diff) | |
download | llvm-90b5afeb652e4073d72a513dbdff9c6e1ec10688.zip llvm-90b5afeb652e4073d72a513dbdff9c6e1ec10688.tar.gz llvm-90b5afeb652e4073d72a513dbdff9c6e1ec10688.tar.bz2 |
[TableGen][SourceMgr] Fix obvious mistake in D141220
It now tried to open the IncludedFile instead of the Filename, which was not intended.
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
-rw-r--r-- | llvm/lib/Support/SourceMgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/SourceMgr.cpp b/llvm/lib/Support/SourceMgr.cpp index 7fdd217..8065f0a 100644 --- a/llvm/lib/Support/SourceMgr.cpp +++ b/llvm/lib/Support/SourceMgr.cpp @@ -53,7 +53,7 @@ ErrorOr<std::unique_ptr<MemoryBuffer>> SourceMgr::OpenIncludeFile(const std::string &Filename, std::string &IncludedFile) { ErrorOr<std::unique_ptr<MemoryBuffer>> NewBufOrErr = - MemoryBuffer::getFile(IncludedFile); + MemoryBuffer::getFile(Filename); SmallString<64> Buffer(Filename); // If the file didn't exist directly, see if it's in an include path. |