diff options
author | Michael Zolotukhin <mzolotukhin@apple.com> | 2016-01-14 09:02:45 +0000 |
---|---|---|
committer | Michael Zolotukhin <mzolotukhin@apple.com> | 2016-01-14 09:02:45 +0000 |
commit | 65c0120193feebdd6e72f4acf9f15a0fdd1433c9 (patch) | |
tree | 6fa773ac90f2abc5a13cd4d561d26819ac17fc55 /llvm/lib/IR/Value.cpp | |
parent | 68befd70942e981174ceec725745fa2d5bce973d (diff) | |
download | llvm-65c0120193feebdd6e72f4acf9f15a0fdd1433c9.zip llvm-65c0120193feebdd6e72f4acf9f15a0fdd1433c9.tar.gz llvm-65c0120193feebdd6e72f4acf9f15a0fdd1433c9.tar.bz2 |
Revert "Assert that we have all use/users in the getters."
This reverts commit fdb838f3f8a8b6896bbbd5285555874eb3b748eb.
llvm-svn: 257751
Diffstat (limited to 'llvm/lib/IR/Value.cpp')
-rw-r--r-- | llvm/lib/IR/Value.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp index eb9deb6..925f205 100644 --- a/llvm/lib/IR/Value.cpp +++ b/llvm/lib/IR/Value.cpp @@ -314,16 +314,6 @@ void Value::takeName(Value *V) { } #ifndef NDEBUG -void Value::assertModuleIsMaterialized() const { - const GlobalValue *GV = dyn_cast<GlobalValue>(this); - if (!GV) - return; - const Module *M = GV->getParent(); - if (!M) - return; - assert(M->isMaterialized()); -} - static bool contains(SmallPtrSetImpl<ConstantExpr *> &Cache, ConstantExpr *Expr, Constant *C) { if (!Cache.insert(Expr).second) |