summaryrefslogtreecommitdiff
path: root/lib/IR
diff options
context:
space:
mode:
Diffstat (limited to 'lib/IR')
-rw-r--r--lib/IR/Module.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/IR/Module.cpp b/lib/IR/Module.cpp
index 5dbed69ca6..91b2d91c62 100644
--- a/lib/IR/Module.cpp
+++ b/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();
}
//===----------------------------------------------------------------------===//