summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp b/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
index 02819fff17e..723d56a4330 100644
--- a/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
+++ b/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
@@ -1309,11 +1309,11 @@ TEST(DWARFDebugInfo, TestAttributeIterators) {
ASSERT_NE(E, ++I);
EXPECT_EQ(I->Attr, DW_AT_declaration);
- EXPECT_EQ(1ull, I->Value.getAsUnsignedConstant());
+ EXPECT_EQ(1ull, *I->Value.getAsUnsignedConstant());
ASSERT_NE(E, ++I);
EXPECT_EQ(I->Attr, DW_AT_low_pc);
- EXPECT_EQ(CULowPC, I->Value.getAsAddress());
+ EXPECT_EQ(CULowPC, *I->Value.getAsAddress());
EXPECT_EQ(E, ++I);
}
OpenPOWER on IntegriCloud