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)
commit8dd4cf158160460009483f91db44c805ad152dce
tree5ba19ce0512ce1dc4662d6cf471a5827d7f1d947
parent506d4b2cb4ec053879b81843abbfd8156d36f614
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231260 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DebugInfo.h
lib/CodeGen/AsmPrinter/DwarfExpression.cpp
lib/IR/DebugInfo.cpp