diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-10-16 18:19:26 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-10-16 18:19:26 +0000 |
| commit | 61753bf84796694f1165e333c3190cc02ea03ba1 (patch) | |
| tree | 098546dcacfabbdee05ac793216998c7df7f8d8a /llvm/lib/Analysis/DataStructure/Local.cpp | |
| parent | 770709befe9000505daf38f116e7bfb46e3db228 (diff) | |
| download | bcm5719-llvm-61753bf84796694f1165e333c3190cc02ea03ba1.tar.gz bcm5719-llvm-61753bf84796694f1165e333c3190cc02ea03ba1.zip | |
Add support for undef
llvm-svn: 17055
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/Local.cpp')
| -rw-r--r-- | llvm/lib/Analysis/DataStructure/Local.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/DataStructure/Local.cpp b/llvm/lib/Analysis/DataStructure/Local.cpp index b497c3849c9..473fb630dc4 100644 --- a/llvm/lib/Analysis/DataStructure/Local.cpp +++ b/llvm/lib/Analysis/DataStructure/Local.cpp @@ -246,6 +246,9 @@ DSNodeHandle GraphBuilder::getValueDest(Value &Val) { } else if (ConstantIntegral *CI = dyn_cast<ConstantIntegral>(C)) { // Random constants are unknown mem return NH = createNode()->setUnknownNodeMarker(); + } else if (isa<UndefValue>(C)) { + ScalarMap.erase(V); + return 0; } else { assert(0 && "Unknown constant type!"); } |

