Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/llvm12/no-strict-aliasing-DwarfCompileUnit.patch
blob: c71688699e98c48b5032a0d998c0b3d898f3436d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt b/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt
index eb924282a75e..85929b54d6ce 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt
+++ b/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt
@@ -44,3 +44,8 @@ add_llvm_component_library(LLVMAsmPrinter
   Support
   Target
   )
+
+# https://bugs.llvm.org/show_bug.cgi?id=50611#c3
+if (CMAKE_COMPILER_IS_GNUCXX)
+  set_source_files_properties(DwarfCompileUnit.cpp PROPERTIES COMPILE_FLAGS -fno-strict-aliasing)
+endif()