aboutsummaryrefslogtreecommitdiffstats
path: root/test/Verifier
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2010-01-09 16:27:31 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2010-01-09 16:27:31 +0000
commit3472246edee4e120e3eb1ec4ad443ba884bc7ac7 (patch)
treeda88c8e978c537f97e831d9e26d213409bda7d57 /test/Verifier
parent1fa8b00b30e3e9ea3ea86ccb819bb9eb11117e6d (diff)
downloadexternal_llvm-3472246edee4e120e3eb1ec4ad443ba884bc7ac7.zip
external_llvm-3472246edee4e120e3eb1ec4ad443ba884bc7ac7.tar.gz
external_llvm-3472246edee4e120e3eb1ec4ad443ba884bc7ac7.tar.bz2
Fixed linking of modules containing aliases to constant bitcasts. Existing behaviour first tried to replace the aliases with the global that they aliased (rather than the bitcast), causing a crash on an assert because the types didn't match. When this was fixed, it then did the same thing creating the new alias (creating an alias with a different type to its aliasee).
Linking modules containing aliases to GEPs is still not quite right. GEPs that are equivalent to bitcasts will be replaced by bitcasts, GEPs that are not will just break. Aliases to GEPs that are not equivalent to bitcasts are horribly broken anyway (it might be worth adding an assert when creating the alias to prevent these being created; they just cause problems later). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93052 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Verifier')
0 files changed, 0 insertions, 0 deletions