DWARFDebugInfoTest.cpp: Don't use ArrayRef with initializer. It was allocated locally.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292127 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
NAKAMURA Takumi 2017-01-16 14:33:37 +00:00
parent 2abcd78f2b
commit 3157d2b8a6

View File

@ -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<dwarf::Attribute>
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());