summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Transforms
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-12-08 21:58:18 +0000
committerAdrian Prantl <aprantl@apple.com>2017-12-08 21:58:18 +0000
commitd13170174c656a6dbf2f4b30b638645d6e0727fd (patch)
tree48e17ffc3aa57c3277dd85aa052f4075a22f6cb5 /llvm/unittests/Transforms
parent195dfd10a679ed4860200e935d1ca292d09bb64b (diff)
downloadbcm5719-llvm-d13170174c656a6dbf2f4b30b638645d6e0727fd.tar.gz
bcm5719-llvm-d13170174c656a6dbf2f4b30b638645d6e0727fd.zip
Generalize llvm::replaceDbgDeclare and actually support the use-case that
is mentioned in the documentation (inserting a deref before the plus_uconst). llvm-svn: 320203
Diffstat (limited to 'llvm/unittests/Transforms')
-rw-r--r--llvm/unittests/Transforms/Utils/Local.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/Transforms/Utils/Local.cpp b/llvm/unittests/Transforms/Utils/Local.cpp
index ee864e68fc0..4789b0558d7 100644
--- a/llvm/unittests/Transforms/Utils/Local.cpp
+++ b/llvm/unittests/Transforms/Utils/Local.cpp
@@ -157,7 +157,8 @@ TEST(Local, ReplaceDbgDeclare) {
ASSERT_TRUE(DII);
Value *NewBase = Constant::getNullValue(Type::getInt32PtrTy(C));
DIBuilder DIB(*M);
- replaceDbgDeclare(AI, NewBase, DII, DIB, /*Deref=*/false, /*Offset=*/0);
+ replaceDbgDeclare(AI, NewBase, DII, DIB, DIExpression::NoDeref, 0,
+ DIExpression::NoDeref);
// There should be exactly two dbg.declares.
int Declares = 0;
OpenPOWER on IntegriCloud