[llvm] r224979 - [OCaml] Fix bitrot in tests.

Peter Zotov whitequark at whitequark.org
Mon Dec 29 19:24:14 PST 2014


Author: whitequark
Date: Mon Dec 29 21:24:14 2014
New Revision: 224979

URL: http://llvm.org/viewvc/llvm-project?rev=224979&view=rev
Log:
[OCaml] Fix bitrot in tests.

Modified:
    llvm/trunk/test/Bindings/OCaml/core.ml

Modified: llvm/trunk/test/Bindings/OCaml/core.ml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bindings/OCaml/core.ml?rev=224979&r1=224978&r2=224979&view=diff
==============================================================================
--- llvm/trunk/test/Bindings/OCaml/core.ml (original)
+++ llvm/trunk/test/Bindings/OCaml/core.ml Mon Dec 29 21:24:14 2014
@@ -1146,7 +1146,7 @@ let test_builder () =
     (* CHECK: %dbg = add i32 %P1, %P2, !dbg !2
      * !2 is metadata emitted at EOF.
      *)
-    insist ((current_debug_location atentry) = None);
+    insist ((current_debug_location atentry) = Some (mdnode context [||]));
 
     let m_line = const_int i32_type 2 in
     let m_col = const_int i32_type 3 in
@@ -1435,7 +1435,7 @@ let test_builder () =
  * CHECK: attributes #0 = {{.*}}uwtable{{.*}}
  * CHECK: !llvm.module.flags = !{!0}
  * CHECK: !0 = !{i32 1, !"Debug Info Version", i32 2}
- * CHECK: !1 = !{i32 1, !"test"}
+ * CHECK: !1 = !{i32 1, !"metadata test"}
  * CHECK: !2 = !{i32 2, i32 3, !3, !3}
  *)
 





More information about the llvm-commits mailing list