svf-lib 1.0.2678 → 1.0.2679

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,15 +14,19 @@ namespace llvm
14
14
  {
15
15
 
16
16
  template<typename ItTy = User::const_op_iterator>
17
- class generic_bridge_gep_type_iterator : public std::iterator<std::forward_iterator_tag, Type*, ptrdiff_t>
17
+ class generic_bridge_gep_type_iterator
18
18
  {
19
19
 
20
- typedef std::iterator<std::forward_iterator_tag,Type*, ptrdiff_t> super;
21
20
  ItTy OpIt;
22
21
  PointerIntPair<Type*,1> CurTy;
23
22
  unsigned AddrSpace;
24
23
  generic_bridge_gep_type_iterator() {}
25
24
  public:
25
+ using iterator_category = std::forward_iterator_tag;
26
+ using value_type = Type*;
27
+ using difference_type = ptrdiff_t;
28
+ using pointer = Type**;
29
+ using reference = Type*&;
26
30
 
27
31
  static generic_bridge_gep_type_iterator begin(Type* Ty, ItTy It)
28
32
  {
@@ -63,7 +67,7 @@ public:
63
67
  Type* operator*() const
64
68
  {
65
69
  if ( CurTy.getInt() )
66
- return CurTy.getPointer()->getPointerTo(AddrSpace);
70
+ return PointerType::get(CurTy.getPointer()->getContext(), AddrSpace);
67
71
  return CurTy.getPointer();
68
72
  }
69
73
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.2678",
3
+ "version": "1.0.2679",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {