summaryrefslogtreecommitdiff
path: root/test/Analysis/GlobalsModRef
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-06-17 03:14:27 +0000
committerChris Lattner <sabre@nondot.org>2011-06-17 03:14:27 +0000
commit26b0000166ca3d00f2a1990b43a1f45cdac4e9b6 (patch)
treef6a7581ff89c965fe0b0d3fabc5b780a695c1ce5 /test/Analysis/GlobalsModRef
parentcd4e0b593db6dfdb5cedbde47ea6603058b8ac6c (diff)
downloadllvm-26b0000166ca3d00f2a1990b43a1f45cdac4e9b6.tar.gz
llvm-26b0000166ca3d00f2a1990b43a1f45cdac4e9b6.tar.bz2
llvm-26b0000166ca3d00f2a1990b43a1f45cdac4e9b6.tar.xz
manually upgrade a bunch of tests to modern syntax, and remove some that
are either unreduced or only test old syntax. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133228 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/GlobalsModRef')
-rw-r--r--test/Analysis/GlobalsModRef/indirect-global.ll5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/Analysis/GlobalsModRef/indirect-global.ll b/test/Analysis/GlobalsModRef/indirect-global.ll
index 1eab0bc208..826f55c8d1 100644
--- a/test/Analysis/GlobalsModRef/indirect-global.ll
+++ b/test/Analysis/GlobalsModRef/indirect-global.ll
@@ -3,8 +3,11 @@
@G = internal global i32* null ; <i32**> [#uses=3]
+
+declare i8* @malloc(i32)
define void @test() {
- %A = malloc i32 ; <i32*> [#uses=1]
+ %a = call i8* @malloc(i32 4)
+ %A = bitcast i8* %a to i32*
store i32* %A, i32** @G
ret void
}