summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SafeStack.cpp
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2016-09-24 04:53:48 +0000
committerQuentin Colombet <qcolombet@apple.com>2016-09-24 04:53:48 +0000
commit8159de4de9508e20dbfd77c8c72394dba608aa63 (patch)
treee22301a7953b12060ee829de34aab23fc68c1f35 /llvm/lib/CodeGen/SafeStack.cpp
parentfbc4d68e71357eb5ace83ed09b8d6fda86794a0c (diff)
downloadbcm5719-llvm-8159de4de9508e20dbfd77c8c72394dba608aa63.tar.gz
bcm5719-llvm-8159de4de9508e20dbfd77c8c72394dba608aa63.zip
[RegisterBankInfo] Keep valid pointers for PartialMappings.
Previously we were using the address of the unique instance of a partial mapping in the related map to access this instance. However, when the map grows, the whole set of instances may be moved elsewhere and the previous addresses are not valid anymore. Instead, keep the address of the unique heap allocated instance of a partial mapping. Note: I did not see any actual bugs for that problem as the number of partial mappings dynamically allocated is small (<= 4). llvm-svn: 282323
Diffstat (limited to 'llvm/lib/CodeGen/SafeStack.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud