summaryrefslogtreecommitdiff
path: root/lib/Analysis/Lint.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-12-15 20:02:24 +0000
committerDan Gohman <gohman@apple.com>2010-12-15 20:02:24 +0000
commit5034dd318a9dfa0dc45a3ac01e58e60f2aa2498d (patch)
tree85f466bd781bcb1865313cc739b252f02116c838 /lib/Analysis/Lint.cpp
parentd5f4bc2c339a88c331dd7ecaa36833358bc1d3b1 (diff)
downloadllvm-5034dd318a9dfa0dc45a3ac01e58e60f2aa2498d.tar.gz
llvm-5034dd318a9dfa0dc45a3ac01e58e60f2aa2498d.tar.bz2
llvm-5034dd318a9dfa0dc45a3ac01e58e60f2aa2498d.tar.xz
Move Value::getUnderlyingObject to be a standalone
function so that it can live in Analysis instead of VMCore. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121885 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/Lint.cpp')
-rw-r--r--lib/Analysis/Lint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/Lint.cpp b/lib/Analysis/Lint.cpp
index 72ae7abd55..d68fcd2212 100644
--- a/lib/Analysis/Lint.cpp
+++ b/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();