Fix DwarfExpression::AddMachineRegExpression so it doesn't read past the
authorAdrian Prantl <aprantl@apple.com>
Wed, 4 Mar 2015 17:39:33 +0000 (17:39 +0000)
committerAdrian Prantl <aprantl@apple.com>
Wed, 4 Mar 2015 17:39:33 +0000 (17:39 +0000)
commit0f61579602d6b923cb44b432f29e6d83b04b0945
treee8a23701c5911a0ee62f53e0ef7afaa4dd6f7457
parentd2af89df107a1e949b388c3431b4c79a6ed2290b
Fix DwarfExpression::AddMachineRegExpression so it doesn't read past the
end of an expression that ends with DW_OP_plus.
Caught by the ASAN build bots.

llvm-svn: 231260
llvm/include/llvm/IR/DebugInfo.h
llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
llvm/lib/IR/DebugInfo.cpp