[llvm] r203717 - Fix the ocaml test to not create a alias to a declaration.

Rafael Espindola rafael.espindola at gmail.com
Wed Mar 12 14:20:42 PDT 2014


Author: rafael
Date: Wed Mar 12 16:20:42 2014
New Revision: 203717

URL: http://llvm.org/viewvc/llvm-project?rev=203717&view=rev
Log:
Fix the ocaml test to not create a alias to a declaration.

Modified:
    llvm/trunk/test/Bindings/Ocaml/vmcore.ml

Modified: llvm/trunk/test/Bindings/Ocaml/vmcore.ml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bindings/Ocaml/vmcore.ml?rev=203717&r1=203716&r2=203717&view=diff
==============================================================================
--- llvm/trunk/test/Bindings/Ocaml/vmcore.ml (original)
+++ llvm/trunk/test/Bindings/Ocaml/vmcore.ml Wed Mar 12 16:20:42 2014
@@ -581,7 +581,8 @@ let test_users () =
 let test_aliases () =
   (* CHECK: @alias = alias i32* @aliasee
    *)
-  let v = declare_global i32_type "aliasee" m in
+  let forty_two32 = const_int i32_type 42 in
+  let v = define_global "aliasee" forty_two32 m in
   ignore (add_alias m (pointer_type i32_type) v "alias")
 
 





More information about the llvm-commits mailing list