summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-08-26 17:29:46 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-08-26 17:29:46 +0000
commitd233b06afc0dddb769f0b548fcb1eadbbf5c74c8 (patch)
tree88ed3fc6613ec01d266c1bc875fbb27d2ccd1363 /llvm/tools/bugpoint
parentf76a89129982e346458e7830822c6d1403ea1cbd (diff)
downloadbcm5719-llvm-d233b06afc0dddb769f0b548fcb1eadbbf5c74c8.tar.gz
bcm5719-llvm-d233b06afc0dddb769f0b548fcb1eadbbf5c74c8.zip
Return a std::unique_ptr from the IRReader.h functions. NFC.
llvm-svn: 216466
Diffstat (limited to 'llvm/tools/bugpoint')
-rw-r--r--llvm/tools/bugpoint/BugDriver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/BugDriver.cpp b/llvm/tools/bugpoint/BugDriver.cpp
index 872f1ba13b9..a87610422c2 100644
--- a/llvm/tools/bugpoint/BugDriver.cpp
+++ b/llvm/tools/bugpoint/BugDriver.cpp
@@ -85,7 +85,7 @@ BugDriver::~BugDriver() {
std::unique_ptr<Module> llvm::parseInputFile(StringRef Filename,
LLVMContext &Ctxt) {
SMDiagnostic Err;
- std::unique_ptr<Module> Result (ParseIRFile(Filename, Err, Ctxt));
+ std::unique_ptr<Module> Result = parseIRFile(Filename, Err, Ctxt);
if (!Result)
Err.print("bugpoint", errs());
OpenPOWER on IntegriCloud