about summary refs log tree commit diff homepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Module/KModule.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Module/KModule.cpp b/lib/Module/KModule.cpp
index 55eb4b8a..c880cba3 100644
--- a/lib/Module/KModule.cpp
+++ b/lib/Module/KModule.cpp
@@ -494,7 +494,8 @@ KFunction::KFunction(llvm::Function *_function,
           ki->operands[j] = registerMap[inst];
         } else if (Argument *a = dyn_cast<Argument>(v)) {
           ki->operands[j] = a->getArgNo();
-        } else if (isa<BasicBlock>(v) || isa<InlineAsm>(v)) {
+        } else if (isa<BasicBlock>(v) || isa<InlineAsm>(v) ||
+                   isa<MDNode>(v)) {
           ki->operands[j] = -1;
         } else {
           assert(isa<Constant>(v));