summarylogtreecommitdiffstats
path: root/always-initialize-all-members-in-ABIArgInfo.patch
diff options
context:
space:
mode:
authorLW-archlinux2019-08-22 23:23:18 +0200
committerLW-archlinux2019-08-22 23:23:18 +0200
commit65cebdfc333733d4cb0c7067b0116646f3aeee2e (patch)
tree9013c0f1cd17749de9c4782fb896092ef53732cf /always-initialize-all-members-in-ABIArgInfo.patch
parent920a2195205a4b452f460195a3ebca0deb5f9026 (diff)
downloadaur-65cebdfc333733d4cb0c7067b0116646f3aeee2e.tar.gz
patch added to work better with gcc 9, alos removed hardcoded version for ocaml
Diffstat (limited to 'always-initialize-all-members-in-ABIArgInfo.patch')
-rw-r--r--always-initialize-all-members-in-ABIArgInfo.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/always-initialize-all-members-in-ABIArgInfo.patch b/always-initialize-all-members-in-ABIArgInfo.patch
new file mode 100644
index 000000000000..bcad2e978e56
--- /dev/null
+++ b/always-initialize-all-members-in-ABIArgInfo.patch
@@ -0,0 +1,27 @@
+diff --unified --recursive --text llvm-project.orig/clang/include/clang/CodeGen/CGFunctionInfo.h llvm-project.new/clang/include/clang/CodeGen/CGFunctionInfo.h
+--- llvm-project.orig/clang/include/clang/CodeGen/CGFunctionInfo.h 2019-08-15 21:40:05.816836459 +0200
++++ llvm-project.new/clang/include/clang/CodeGen/CGFunctionInfo.h 2019-08-15 21:46:13.650020726 +0200
+@@ -110,14 +110,16 @@
+ }
+
+ ABIArgInfo(Kind K)
+- : TheKind(K), PaddingInReg(false), InReg(false) {
+- }
+-
+-public:
+- ABIArgInfo()
+- : TypeData(nullptr), PaddingType(nullptr), DirectOffset(0),
+- TheKind(Direct), PaddingInReg(false), InReg(false) {}
++ : TypeData(nullptr), PaddingType(nullptr), DirectOffset(0), TheKind(K),
++ PaddingInReg(false), InAllocaSRet(false), IndirectByVal(false),
++ IndirectRealign(false), SRetAfterThis(false), InReg(false),
++ CanBeFlattened(false), SignExt(false) {}
+
++public:
++ ABIArgInfo()
++ : TypeData(nullptr), PaddingType(nullptr), DirectOffset(0),
++ TheKind(Direct), PaddingInReg(false), InReg(false) {}
++
+ static ABIArgInfo getDirect(llvm::Type *T = nullptr, unsigned Offset = 0,
+ llvm::Type *Padding = nullptr,
+ bool CanBeFlattened = true) {