summaryrefslogtreecommitdiff
path: root/test/Verifier
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-07-30 22:51:54 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-07-30 22:51:54 +0000
commitd57120551f8c1e810bf5f55f60d9a46b66da6e54 (patch)
tree65f8bb9ed812ebe617bcfea25aab747e4f79dbab /test/Verifier
parent367c5c25e89c3c9251bc30f0880e3fb1f65df955 (diff)
Use "weak alias" instead of "alias weak"
Before this patch we had @a = weak global ... but @b = alias weak ... The patch changes aliases to look more like global variables. Looking at some really old code suggests that the reason was that the old bison based parser had a reduction for alias linkages and another one for global variable linkages. Putting the alias first avoided the reduce/reduce conflict. The days of the old .ll parser are long gone. The new one parses just "linkage" and a later check is responsible for deciding if a linkage is valid in a given context. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Verifier')
-rw-r--r--test/Verifier/alias.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Verifier/alias.ll b/test/Verifier/alias.ll
index ff02a37bab9..dd04ae05f63 100644
--- a/test/Verifier/alias.ll
+++ b/test/Verifier/alias.ll
@@ -21,7 +21,7 @@ declare void @f()
@test3_a = global i32 42
-@test3_b = alias weak i32* @test3_a
+@test3_b = weak alias i32* @test3_a
@test3_c = alias i32* @test3_b
; CHECK: Alias cannot point to a weak alias
; CHECK-NEXT: i32* @test3_c