Make GlobalValue alignment consistent with load, store, and alloca

alignment, fixing silent truncation of alignment values.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109653 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2010-07-28 20:56:48 +00:00
parent 4c010ec851
commit 6bbe671e1c
3 changed files with 13 additions and 5 deletions

View File

@@ -1,5 +1,7 @@
; RUN: llvm-as %s -o /dev/null
@A = global i1 0, align 536870912
define void @foo() {
%p = alloca i1, align 536870912
load i1* %p, align 536870912