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:
b6808ba
)
Revert "[MCParser] Modernize CppHashInfoTy (NFC)"
author
Kazu Hirata
<kazu@google.com>
Sat, 10 Jun 2023 20:34:30 +0000
(13:34 -0700)
committer
Kazu Hirata
<kazu@google.com>
Sat, 10 Jun 2023 20:34:31 +0000
(13:34 -0700)
This reverts commit
c0f9d7b0e6199ca3bde5a6d0036a8ada0bb6253b
.
A build error has been reported with gcc-7.
This patch fixes:
https://github.com/llvm/llvm-project/issues/63240
llvm/lib/MC/MCParser/MasmParser.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/MC/MCParser/MasmParser.cpp
b/llvm/lib/MC/MCParser/MasmParser.cpp
index
1502d70
..
d522b77
100644
(file)
--- a/
llvm/lib/MC/MCParser/MasmParser.cpp
+++ b/
llvm/lib/MC/MCParser/MasmParser.cpp
@@
-435,10
+435,10
@@
private:
/// The values from the last parsed cpp hash file line comment if any.
struct CppHashInfoTy {
StringRef Filename;
- int64_t LineNumber
= 0
;
+ int64_t LineNumber;
SMLoc Loc;
- unsigned Buf
= 0
;
- CppHashInfoTy()
= default;
+ unsigned Buf;
+ CppHashInfoTy()
: LineNumber(0), Buf(0) {}
};
CppHashInfoTy CppHashInfo;