summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorMichael Zolotukhin <mzolotukhin@apple.com>2016-01-14 09:02:45 +0000
committerMichael Zolotukhin <mzolotukhin@apple.com>2016-01-14 09:02:45 +0000
commit65c0120193feebdd6e72f4acf9f15a0fdd1433c9 (patch)
tree6fa773ac90f2abc5a13cd4d561d26819ac17fc55 /llvm/lib/IR/Module.cpp
parent68befd70942e981174ceec725745fa2d5bce973d (diff)
downloadbcm5719-llvm-65c0120193feebdd6e72f4acf9f15a0fdd1433c9.tar.gz
bcm5719-llvm-65c0120193feebdd6e72f4acf9f15a0fdd1433c9.zip
Revert "Assert that we have all use/users in the getters."
This reverts commit fdb838f3f8a8b6896bbbd5285555874eb3b748eb. llvm-svn: 257751
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
-rw-r--r--llvm/lib/IR/Module.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/IR/Module.cpp b/llvm/lib/IR/Module.cpp
index ac578d6dba0..0685c1a206d 100644
--- a/llvm/lib/IR/Module.cpp
+++ b/llvm/lib/IR/Module.cpp
@@ -394,8 +394,10 @@ std::error_code Module::materialize(GlobalValue *GV) {
std::error_code Module::materializeAll() {
if (!Materializer)
return std::error_code();
- std::unique_ptr<GVMaterializer> M = std::move(Materializer);
- return M->materializeModule();
+ if (std::error_code EC = Materializer->materializeModule())
+ return EC;
+ Materializer.reset();
+ return std::error_code();
}
std::error_code Module::materializeMetadata() {
OpenPOWER on IntegriCloud