summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.h
diff options
context:
space:
mode:
authorFrederic Riss <friss@apple.com>2014-12-09 17:55:48 +0000
committerFrederic Riss <friss@apple.com>2014-12-09 17:55:48 +0000
commit7c78db5065a34dd91b294fc68ad1b1ea0df13cba (patch)
tree0bcc804b94df2187058559167ba232df9ca2c7bb /llvm/lib/Bitcode/Reader/BitcodeReader.h
parent3a4095de83f34df1f283af5af7abd200c8655c1c (diff)
downloadbcm5719-llvm-7c78db5065a34dd91b294fc68ad1b1ea0df13cba.tar.gz
bcm5719-llvm-7c78db5065a34dd91b294fc68ad1b1ea0df13cba.zip
Correctly handle complex locations expressions in replaceDbgDeclareForAlloca()
replaceDbgDeclareForAlloca() replaces an alloca by a value storing the address of what was the alloca. If there is a dbg.declare corresponding to that alloca, we need to lower it to a dbg.value describing the additional dereference operation to be performed to get to the underlying variable. This is done by adding a DW_OP_deref to the complex location part of the location description. This deref was added to the end of the operation list, which is wrong. The expression applies to what is described by the dbg.{declare,value}, and as we are changing this, we need to apply the DW_OP_deref as the first operation in the list. Part of the fix for rdar://19162268. llvm-svn: 223799
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud