summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-03 20:54:51 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-03 20:54:51 +0000
commit756e1c3db452165ddcc8b8d11df8a3d36fd427bb (patch)
tree4fe3249c92551ecf294b1fd977eca881fd54ab55 /llvm/include/llvm-c
parenta997856b3d0610a7db795dbd03c511eabb6d0382 (diff)
downloadbcm5719-llvm-756e1c3db452165ddcc8b8d11df8a3d36fd427bb.tar.gz
bcm5719-llvm-756e1c3db452165ddcc8b8d11df8a3d36fd427bb.zip
ValueMapper: Disallow metadata mapping recursion through mapValue
This adds an assertion to maintain the property from r265273. When Mapper::mapSimpleMetadata calls Mapper::mapValue, it should not find its way back to mapMetadataImpl. This guarantees that mapSimpleMetadata is not involved in any recursion. Since Mapper::mapValue calls out to arbitrary materializers, we need to save a bit on the ValueMap to make this assertion effective. There should be no functionality change here. This co-recursion should already have been impossible. llvm-svn: 265276
Diffstat (limited to 'llvm/include/llvm-c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud