Imported Upstream version 5.18.0.205

Former-commit-id: 7f59f7e792705db773f1caecdaa823092f4e2927
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-11-16 08:20:38 +00:00
parent 5cd5df71cc
commit 8e12397d70
28486 changed files with 3867013 additions and 66 deletions

View File

@@ -0,0 +1,16 @@
; RUN: opt < %s -globalopt -S | FileCheck %s
; PR8389: Globals with weak_odr linkage type must not be modified
; CHECK: weak_odr local_unnamed_addr global i32 0
@SomeVar = weak_odr global i32 0
@llvm.global_ctors = appending global [1 x { i32, void ()* }] [ { i32, void ()* } { i32 65535, void ()* @CTOR } ]
define internal void @CTOR() {
store i32 23, i32* @SomeVar
ret void
}