summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/SplitModule.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2018-02-14 19:50:40 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2018-02-14 19:50:40 +0000
commit71867532187d45df623b7e4658be7bea06ee3f3e (patch)
tree121bb6657e585c031247f07a939b11e7c0c0c970 /llvm/lib/Transforms/Utils/SplitModule.cpp
parent76064a4b1e7fd1d53cdef12300cb21ceccad3e48 (diff)
downloadbcm5719-llvm-71867532187d45df623b7e4658be7bea06ee3f3e.tar.gz
bcm5719-llvm-71867532187d45df623b7e4658be7bea06ee3f3e.zip
Pass a module reference to CloneModule.
It can never be null and most callers were already using references or std::unique_ptr. llvm-svn: 325160
Diffstat (limited to 'llvm/lib/Transforms/Utils/SplitModule.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SplitModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SplitModule.cpp b/llvm/lib/Transforms/Utils/SplitModule.cpp
index 968eb0208f4..7966fa43712 100644
--- a/llvm/lib/Transforms/Utils/SplitModule.cpp
+++ b/llvm/lib/Transforms/Utils/SplitModule.cpp
@@ -270,7 +270,7 @@ void llvm::SplitModule(
for (unsigned I = 0; I < N; ++I) {
ValueToValueMapTy VMap;
std::unique_ptr<Module> MPart(
- CloneModule(M.get(), VMap, [&](const GlobalValue *GV) {
+ CloneModule(*M, VMap, [&](const GlobalValue *GV) {
if (ClusterIDMap.count(GV))
return (ClusterIDMap[GV] == I);
else
OpenPOWER on IntegriCloud