OSDN Git Service

[LVI] Fix a latent bug in getValueAt
authorPhilip Reames <listmail@philipreames.com>
Tue, 2 Feb 2016 00:45:30 +0000 (00:45 +0000)
committerPhilip Reames <listmail@philipreames.com>
Tue, 2 Feb 2016 00:45:30 +0000 (00:45 +0000)
commitb4e775c587ff94d5924a464ab8e47470db1a3c05
tree7ef76bf26842ad1acab6dd72427d5430697ce301
parentc0e338f8864d90dd30793b6760ab850a2de8e537
[LVI] Fix a latent bug in getValueAt

This routine was returning Undefined for most queries.  This was utterly wrong.  Amusingly, we do not appear to have any callers of this which are actually trying to exploit unreachable code or this would have broken the world.

A better approach would be to explicit describe the intersection of facts.  That's blocked behind http://reviews.llvm.org/D14476 and I wanted to fix the current bug.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259446 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/LazyValueInfo.cpp