[llvm] r292127 - DWARFDebugInfoTest.cpp: Don't use ArrayRef with initializer. It was allocated locally.
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 16 06:33:38 PST 2017
Author: chapuni
Date: Mon Jan 16 08:33:37 2017
New Revision: 292127
URL: http://llvm.org/viewvc/llvm-project?rev=292127&view=rev
Log:
DWARFDebugInfoTest.cpp: Don't use ArrayRef with initializer. It was allocated locally.
Modified:
llvm/trunk/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
Modified: llvm/trunk/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp?rev=292127&r1=292126&r2=292127&view=diff
==============================================================================
--- llvm/trunk/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp (original)
+++ llvm/trunk/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp Mon Jan 16 08:33:37 2017
@@ -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());
More information about the llvm-commits
mailing list