aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
-rw-r--r--llvm/lib/IR/Module.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Module.cpp b/llvm/lib/IR/Module.cpp
index 5dbed69c..91b2d91 100644
--- a/llvm/lib/IR/Module.cpp
+++ b/llvm/lib/IR/Module.cpp
@@ -396,7 +396,7 @@ void Module::Dematerialize(GlobalValue *GV) {
error_code Module::materializeAll() {
if (!Materializer)
- return error_code::success();
+ return error_code();
return Materializer->MaterializeModule(this);
}
@@ -405,7 +405,7 @@ error_code Module::materializeAllPermanently() {
return EC;
Materializer.reset();
- return error_code::success();
+ return error_code();
}
//===----------------------------------------------------------------------===//