]> granicus.if.org Git - llvm/commit
CodeGen: Don't follow aliases when extracting type info.
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 2 Aug 2019 17:43:45 +0000 (17:43 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 2 Aug 2019 17:43:45 +0000 (17:43 +0000)
commit69783d2696b1c3c41b1b97865f0c89da8f4ad7cf
tree054f661c54b73ba2c7307416760a566f21cf8e10
parente2d5f7a219146fea8618567881c0bacc467f4850
CodeGen: Don't follow aliases when extracting type info.

This fixes a crash in the case where the type info object is an alias
pointing to a non-zero offset within a global or is otherwise unanalyzable
by the stripPointerCasts() function. Looking through the alias is not the
right thing to do anyway for similar reasons as D65118.

Differential Revision: https://reviews.llvm.org/D65314

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367696 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/Analysis.cpp
test/CodeGen/X86/typeid-alias.ll [new file with mode: 0644]