diff options
author | Dan Gohman <gohman@apple.com> | 2010-12-15 20:02:24 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-12-15 20:02:24 +0000 |
commit | a4fcd2418dc7f0b425a3c1b4fb873fbe4e2e7f72 (patch) | |
tree | 962968e998866ffb0bf159c77c4f85e4bc509f3a /llvm/lib/Analysis/Lint.cpp | |
parent | a51174af72e0ff8ccff9e5fc04b11a4c44f4d99c (diff) | |
download | bcm5719-llvm-a4fcd2418dc7f0b425a3c1b4fb873fbe4e2e7f72.tar.gz bcm5719-llvm-a4fcd2418dc7f0b425a3c1b4fb873fbe4e2e7f72.zip |
Move Value::getUnderlyingObject to be a standalone
function so that it can live in Analysis instead of
VMCore.
llvm-svn: 121885
Diffstat (limited to 'llvm/lib/Analysis/Lint.cpp')
-rw-r--r-- | llvm/lib/Analysis/Lint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/Lint.cpp b/llvm/lib/Analysis/Lint.cpp index 72ae7abd551..d68fcd22125 100644 --- a/llvm/lib/Analysis/Lint.cpp +++ b/llvm/lib/Analysis/Lint.cpp @@ -567,7 +567,7 @@ Value *Lint::findValueImpl(Value *V, bool OffsetOk, // TODO: Look through eliminable cast pairs. // TODO: Look through calls with unique return values. // TODO: Look through vector insert/extract/shuffle. - V = OffsetOk ? V->getUnderlyingObject() : V->stripPointerCasts(); + V = OffsetOk ? GetUnderlyingObject(V) : V->stripPointerCasts(); if (LoadInst *L = dyn_cast<LoadInst>(V)) { BasicBlock::iterator BBI = L; BasicBlock *BB = L->getParent(); |