[llvm] a5258e5 - Revert "[MCParser] Use default member initialization (NFC)"
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 18 21:02:14 PDT 2022
Author: Kazu Hirata
Date: 2022-06-18T21:02:09-07:00
New Revision: a5258e5b2728e6337462247ba11dcf7af051ae9b
URL: https://github.com/llvm/llvm-project/commit/a5258e5b2728e6337462247ba11dcf7af051ae9b
DIFF: https://github.com/llvm/llvm-project/commit/a5258e5b2728e6337462247ba11dcf7af051ae9b.diff
LOG: Revert "[MCParser] Use default member initialization (NFC)"
This reverts commit 68090a014cf5af8198a06bdecea0aeedc0c23023.
The patch seems to cause a build error on ppc64le:
https://lab.llvm.org/buildbot#builders/121/builds/20536
Added:
Modified:
llvm/lib/MC/MCParser/AsmParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp
index 8ee5102009e0..ccc8e80e76ff 100644
--- a/llvm/lib/MC/MCParser/AsmParser.cpp
+++ b/llvm/lib/MC/MCParser/AsmParser.cpp
@@ -155,10 +155,10 @@ class AsmParser : public MCAsmParser {
/// 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;
More information about the llvm-commits
mailing list