aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-09 22:13:27 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-09 22:13:27 +0000
commitbd75ad4d0c56a44805da27cd3aa87c95a98ac62b (patch)
tree4a48147c26ce7440581530a0fa8a3b85b9311f73 /llvm/lib/Transforms/Utils/Local.cpp
parent0edbf2e407363c0e8e2df654d75859a3d08974a9 (diff)
downloadllvm-bd75ad4d0c56a44805da27cd3aa87c95a98ac62b.zip
llvm-bd75ad4d0c56a44805da27cd3aa87c95a98ac62b.tar.gz
llvm-bd75ad4d0c56a44805da27cd3aa87c95a98ac62b.tar.bz2
IR: Take uint64_t in DIBuilder::createExpression()
`DIExpression` deals with `uint64_t`, so it doesn't make sense that `createExpression()` is created from `int64_t`. Switch to `uint64_t` to unify them. I've temporarily left in the `int64_t` version, which forwards to the `uint64_t` version. I'll delete it once I've updated the callers. llvm-svn: 228619
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index c2dfaf5..b8c0a7e 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -1123,7 +1123,7 @@ bool llvm::replaceDbgDeclareForAlloca(AllocaInst *AI, Value *NewAllocaAddress,
// "deref" operation to a list of address elements, as new llvm.dbg.declare
// will take a value storing address of the memory for variable, not
// alloca itself.
- SmallVector<int64_t, 4> NewDIExpr;
+ SmallVector<uint64_t, 4> NewDIExpr;
NewDIExpr.push_back(dwarf::DW_OP_deref);
if (DIExpr)
for (unsigned i = 0, n = DIExpr.getNumElements(); i < n; ++i)