summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2017-01-16 14:33:37 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2017-01-16 14:33:37 +0000
commitf2b135ac3ae26d353c113c10359e6e839ad4845e (patch)
tree0aa1f3cff3cc8754c8541f9717f40ae4316fc9b3 /llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
parent457eb579ddea65498e073283bd7a742111538115 (diff)
downloadbcm5719-llvm-f2b135ac3ae26d353c113c10359e6e839ad4845e.tar.gz
bcm5719-llvm-f2b135ac3ae26d353c113c10359e6e839ad4845e.zip
DWARFDebugInfoTest.cpp: Don't use ArrayRef with initializer. It was allocated locally.
llvm-svn: 292127
Diffstat (limited to 'llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp')
-rw-r--r--llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp b/llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
index 5c9febd1890..8cf4e56b0a3 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<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());
OpenPOWER on IntegriCloud