From e85bbf564de9adfe09d6b24b9861b28e2b78e9ad Mon Sep 17 00:00:00 2001 From: Petar Jovanovic Date: Mon, 20 May 2019 10:35:57 +0000 Subject: [DebugInfoMetadata] Refactor DIExpression::prepend constants (NFC) Refactor DIExpression::With* into a flag enum in order to be less error-prone to use (as discussed on D60866). Patch by Djordje Todorovic. Differential Revision: https://reviews.llvm.org/D61943 llvm-svn: 361137 --- llvm/unittests/Transforms/Utils/LocalTest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/unittests/Transforms/Utils/LocalTest.cpp') diff --git a/llvm/unittests/Transforms/Utils/LocalTest.cpp b/llvm/unittests/Transforms/Utils/LocalTest.cpp index f83e10af756..55f04e98d77 100644 --- a/llvm/unittests/Transforms/Utils/LocalTest.cpp +++ b/llvm/unittests/Transforms/Utils/LocalTest.cpp @@ -153,8 +153,7 @@ TEST(Local, ReplaceDbgDeclare) { ASSERT_TRUE(DII); Value *NewBase = Constant::getNullValue(Type::getInt32PtrTy(C)); DIBuilder DIB(*M); - replaceDbgDeclare(AI, NewBase, DII, DIB, DIExpression::NoDeref, 0, - DIExpression::NoDeref); + replaceDbgDeclare(AI, NewBase, DII, DIB, DIExpression::ApplyOffset, 0); // There should be exactly two dbg.declares. int Declares = 0; -- cgit v1.2.3