From f2b135ac3ae26d353c113c10359e6e839ad4845e Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Mon, 16 Jan 2017 14:33:37 +0000 Subject: [PATCH] DWARFDebugInfoTest.cpp: Don't use ArrayRef with initializer. It was allocated locally. llvm-svn: 292127 --- llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp b/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp index 5c9febd18905..8cf4e56b0a30 100644 --- a/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp +++ b/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp @@ -1527,9 +1527,9 @@ TEST(DWARFDebugInfo, TestFindAttrs) { // in the DIE returns nothing. EXPECT_FALSE(FuncDie.find({DW_AT_low_pc, DW_AT_entry_pc}).hasValue()); - ArrayRef - Attrs = { DW_AT_linkage_name, DW_AT_MIPS_linkage_name }; - + const dwarf::Attribute Attrs[] = {DW_AT_linkage_name, + DW_AT_MIPS_linkage_name}; + // Make sure we can't extract the linkage name attributes when using // DWARFDie::find() since it won't check the DW_AT_specification DIE. EXPECT_FALSE(FuncDie.find(Attrs).hasValue());