llvm-12.0.1

This commit is contained in:
Rmys
2021-07-09 19:09:10 +03:00
committed by GitHub
parent 5f5f5ef01f
commit 5ca66ae71e
3 changed files with 69 additions and 60 deletions
@@ -0,0 +1,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()