aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Utils.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-06-29 21:58:50 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-06-29 21:58:50 +0000
commit5555eac7c61e4c23babf324057c8c361cace0844 (patch)
tree23b2a35be1732668deea1aa4a662722467565948 /llvm/lib/Transforms/Utils/Utils.cpp
parent18087fbc152d7c3e7d756dee48ace1042acc095c (diff)
downloadllvm-5555eac7c61e4c23babf324057c8c361cace0844.zip
llvm-5555eac7c61e4c23babf324057c8c361cace0844.tar.gz
llvm-5555eac7c61e4c23babf324057c8c361cace0844.tar.bz2
PR33924: merge local declarations that have linkage of some kind within
merged function definitions; also merge functions with deduced return types. This seems like two independent fixes, but unfortunately they are hard to separate because it's challenging to reliably test either one of them without also testing the other. A complication arises with deduced return type support: we need the type of the function in order to know how to merge it, but we can't load the actual type of the function because it might reference an entity declared within the function (and we need to have already merged the function to correctly merge that entity, which we would need to do to determine if the function types match). So we instead compare the declared function type when merging functions, and defer loading the actual type of a function with a deduced type until we've finished loading and merging the function. llvm-svn: 336021
Diffstat (limited to 'llvm/lib/Transforms/Utils/Utils.cpp')
0 files changed, 0 insertions, 0 deletions