Unverified Commit 67bd7bc4 authored by Nick Sarnie's avatar Nick Sarnie Committed by GitHub
Browse files

[llubi][NFC] Fix build with old GCC (#195327)

Using old GCC (7.5 in this case), we get a compile error about not being
able to deduce the template paramerter:


```
/llvm/llvm/tools/llubi/lib/Interpreter.cpp:770:14: error: no viable constructor or deduction guide for deduction of template arguments of 'std::vector'
  770 |       return std::vector(Vec.begin() + Offset, Vec.begin() + Offset + DstSize);
```

The error was introduced in
https://github.com/llvm/llvm-project/pull/194345

.

Just specify the element type.

---------

Signed-off-by: default avatarNick Sarnie <nick.sarnie@intel.com>
parent 6946e513
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -786,7 +786,8 @@ public:
      const uint64_t Offset = Chunk * EVL;
      if (Offset > Vec.size() || EVL > Vec.size() - Offset)
        return AnyValue::poison();
      return std::vector(Vec.begin() + Offset, Vec.begin() + Offset + EVL);
      return std::vector<AnyValue>(Vec.begin() + Offset,
                                   Vec.begin() + Offset + EVL);
    }
    case Intrinsic::vector_reverse: {
      auto Vec = Args[0].asAggregate();