summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2018-04-02 23:20:30 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2018-04-02 23:20:30 +0000
commit8c58750cc41e105ad26dd225b23049907341ad85 (patch)
tree66087f02480a7765ff603a1b222a64fdd1fc6522 /llvm/test
parent84e2cd6c021a1564e77c2f099f9d3a3c21906e90 (diff)
downloadbcm5719-llvm-8c58750cc41e105ad26dd225b23049907341ad85.tar.gz
bcm5719-llvm-8c58750cc41e105ad26dd225b23049907341ad85.zip
Align stubs for external and common global variables to pointer size.
This patch fixes PR36885: clang++ generates unaligned stub symbol holding a pointer. Patch by Rahul Chaudhry! llvm-svn: 329030
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/X86/catch.ll6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/catch.ll b/llvm/test/CodeGen/X86/catch.ll
index be7466e8abb..5c0bc5008f4 100644
--- a/llvm/test/CodeGen/X86/catch.ll
+++ b/llvm/test/CodeGen/X86/catch.ll
@@ -3,7 +3,11 @@
; PR18390
; We used to assert creating this label. The name itself is not critical. It
; just needs to be a unique local symbol.
-; CHECK: .L.Lstr.DW.stub:
+; PR36885
+; The stub symbol should have pointer-size (8 byte) alignment.
+; CHECK: .data
+; CHECK-NEXT: .p2align 3
+; CHECK-NEXT: .L.Lstr.DW.stub:
; CHECK-NEXT: .quad .Lstr
@str = private unnamed_addr constant [12 x i8] c"NSException\00"
OpenPOWER on IntegriCloud