Reinstantiate code from 3c51faa2
Fixes test_duchain-clang's testSameFunctionDefinition. My git foo isn't good enough to figure out where this got lost?