Try to appease buildbots.
authorFrederic Riss <friss@apple.com>
Wed, 25 Feb 2015 22:07:43 +0000 (22:07 +0000)
committerFrederic Riss <friss@apple.com>
Wed, 25 Feb 2015 22:07:43 +0000 (22:07 +0000)
It seems ArrayRefs to multi-dimensional arrays confuse some compilers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230554 91177308-0d34-0410-b5e6-96231b3b80d8

lib/DebugInfo/DWARF/DWARFDebugFrame.cpp

index 1585c4716b46fa43f666e9aae9c061357630cf4b..524d7284665a0b6c650631ff169c0f861c54e9e5 100644 (file)
@@ -330,7 +330,7 @@ static ArrayRef<OperandType[2]> getOperandTypes() {
 #undef DECLARE_OP0
 #undef DECLARE_OP1
 #undef DECLARE_OP2
-  return OpTypes;
+  return ArrayRef<OperandType[2]>(&OpTypes[0], DW_CFA_restore+1);
 }
 
 static ArrayRef<OperandType[2]> OpTypes = getOperandTypes();