[CFLAA] Check for pointer types in more places.
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Fri, 29 Jul 2016 01:23:45 +0000 (01:23 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Fri, 29 Jul 2016 01:23:45 +0000 (01:23 +0000)
commit0a9cbd47430a95710bc3a7a41c128d3b4c51cd2c
tree09ca94c30cb388516be21b94a6df86f3e6f52fed
parent4c922aba3f75f04ab51ebd9623b89963c2f5dbd2
[CFLAA] Check for pointer types in more places.

This patch fixes an assertion that fires when we try to add non-pointer
Values to the CFLGraph. Centralizing the check for whether something
is/isn't a pointer type isn't completely trivial (and, in some cases,
would end up being entirely redundant), but it may be beneficial to do
so if this trips us up more in the future.

Patch by Jia Chen.

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

llvm-svn: 277096
llvm/lib/Analysis/CFLGraph.h