aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Instrumentation/CGProfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/CGProfile.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/CGProfile.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/CGProfile.cpp b/llvm/lib/Transforms/Instrumentation/CGProfile.cpp
index b11b84d65d23..57c491436b93 100644
--- a/llvm/lib/Transforms/Instrumentation/CGProfile.cpp
+++ b/llvm/lib/Transforms/Instrumentation/CGProfile.cpp
@@ -39,7 +39,8 @@ addModuleFlags(Module &M,
Nodes.push_back(MDNode::get(Context, Vals));
}
- M.addModuleFlag(Module::Append, "CG Profile", MDNode::get(Context, Nodes));
+ M.addModuleFlag(Module::Append, "CG Profile",
+ MDTuple::getDistinct(Context, Nodes));
return true;
}