projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Return a std::unique_ptr from CloneModule. NFC.
[oota-llvm.git]
/
unittests
/
Transforms
/
Utils
/
Cloning.cpp
diff --git
a/unittests/Transforms/Utils/Cloning.cpp
b/unittests/Transforms/Utils/Cloning.cpp
index e22573f886c360be5b151012bd886032c66e9ad1..25e322ee5a8e88d0f29a0a07714ccd6c4f1b332c 100644
(file)
--- a/
unittests/Transforms/Utils/Cloning.cpp
+++ b/
unittests/Transforms/Utils/Cloning.cpp
@@
-436,7
+436,7
@@
protected:
IBuilder.CreateRetVoid();
}
- void CreateNewModule() { NewM = llvm::CloneModule(OldM); }
+ void CreateNewModule() { NewM = llvm::CloneModule(OldM)
.release()
; }
LLVMContext C;
Module *OldM;