diff options
Diffstat (limited to 'lib/VMCore/Value.cpp')
-rw-r--r-- | lib/VMCore/Value.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/VMCore/Value.cpp b/lib/VMCore/Value.cpp index af13973e83..2cdd55217c 100644 --- a/lib/VMCore/Value.cpp +++ b/lib/VMCore/Value.cpp @@ -142,6 +142,10 @@ static bool getSymTab(Value *V, ValueSymbolTable *&ST) { } else if (Argument *A = dyn_cast<Argument>(V)) { if (Function *P = A->getParent()) ST = &P->getValueSymbolTable(); + } else if (NamedMDNode *N = dyn_cast<NamedMDNode>(V)) { + if (Module *P = N->getParent()) { + ST = &P->getValueSymbolTable(); + } } else if (isa<MDString>(V)) return true; else { |