diff options
Diffstat (limited to 'llvm/lib/VMCore/Value.cpp')
-rw-r--r-- | llvm/lib/VMCore/Value.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/VMCore/Value.cpp b/llvm/lib/VMCore/Value.cpp index 0155fa5cfef..fe1219f9a88 100644 --- a/llvm/lib/VMCore/Value.cpp +++ b/llvm/lib/VMCore/Value.cpp @@ -19,7 +19,6 @@ #include "llvm/Instructions.h" #include "llvm/Operator.h" #include "llvm/Module.h" -#include "llvm/Metadata.h" #include "llvm/ValueSymbolTable.h" #include "llvm/ADT/SmallString.h" #include "llvm/Support/Debug.h" @@ -302,14 +301,6 @@ void Value::uncheckedReplaceAllUsesWith(Value *New) { if (HasValueHandle) ValueHandleBase::ValueIsRAUWd(this, New); - // FIXME: It doesn't make sense at all for metadata to follow RAUW. - if (Instruction *I = dyn_cast<Instruction>(this)) - if (I->hasMetadata()) { - LLVMContext &Context = getContext(); - // FIXME: NUKE ValueIsRAUWd?? - Context.pImpl->TheMetadata.ValueIsRAUWd(this, New); - } - while (!use_empty()) { Use &U = *UseList; // Must handle Constants specially, we cannot call replaceUsesOfWith on a |