1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-04-12 23:37:33 +00:00

DIBuilder: Stop abusing DIExpressionIterator::operator*(), NFC

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
This commit is contained in:
Duncan P. N. Exon Smith 2015-01-22 03:13:35 +00:00
parent eaa29e9019
commit cc19b2fb2e

@ -910,7 +910,7 @@ public:
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; }