projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17a1936
)
[TableGen][SourceMgr] Fix obvious mistake in D141220
author
Markus Böck
<markus.boeck02@gmail.com>
Mon, 9 Jan 2023 10:16:56 +0000
(11:16 +0100)
committer
Markus Böck
<markus.boeck02@gmail.com>
Mon, 9 Jan 2023 10:16:56 +0000
(11:16 +0100)
It now tried to open the IncludedFile instead of the Filename, which was not intended.
llvm/lib/Support/SourceMgr.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Support/SourceMgr.cpp
b/llvm/lib/Support/SourceMgr.cpp
index 7fdd217f861f7af6cf7c1762adafa7987918baf6..8065f0ad663a9f3601bd9e5818805c3375568f7b 100644
(file)
--- 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(
IncludedFil
e);
+ MemoryBuffer::getFile(
Filenam
e);
SmallString<64> Buffer(Filename);
// If the file didn't exist directly, see if it's in an include path.