summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Value.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/IR/Value.cpp')
-rw-r--r--llvm/lib/IR/Value.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp
index eb9deb6a07e..925f2058e55 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)
OpenPOWER on IntegriCloud