diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-22 03:13:35 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-22 03:13:35 +0000 |
| commit | e7354b52cab192918a33e9b68add149bf2b95165 (patch) | |
| tree | d38a12f0249fc0188e71fc0b7a348952c7da2895 | |
| parent | c6ed89497355bb7eee03b8061632c6f9c0b06cb5 (diff) | |
| download | bcm5719-llvm-e7354b52cab192918a33e9b68add149bf2b95165.tar.gz bcm5719-llvm-e7354b52cab192918a33e9b68add149bf2b95165.zip | |
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.
llvm-svn: 226773
| -rw-r--r-- | llvm/include/llvm/IR/DebugInfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/IR/DebugInfo.h b/llvm/include/llvm/IR/DebugInfo.h index fc4d95cfc14..f42a8ebd884 100644 --- a/llvm/include/llvm/IR/DebugInfo.h +++ b/llvm/include/llvm/IR/DebugInfo.h @@ -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; } |

