This code was confusing, since it created a `DIExpressionIterator` from
an invalid start point (although it wasn't wrong: it never actually
iterated). Now that the underlying iterator has `getNumber()`, just use
it directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226773
91177308-0d34-0410-b5e6-
96231b3b80d8
uint64_t getArg(unsigned N) const {
auto In = I;
std::advance(In, N);
- return *DIExpressionIterator(In);
+ return In.getNumber<uint64_t>();
}
const DIHeaderFieldIterator& getBase() const { return I; }