summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llc
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/llc
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/llc')
-rw-r--r--llvm/tools/llc/llc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp
index aef86b22ce0..ff3f2ebe3eb 100644
--- a/llvm/tools/llc/llc.cpp
+++ b/llvm/tools/llc/llc.cpp
@@ -231,7 +231,7 @@ static int compileModule(char **argv, LLVMContext &Context) {
// If user just wants to list available options, skip module loading
if (!SkipModule) {
- M.reset(ParseIRFile(InputFilename, Err, Context));
+ M = parseIRFile(InputFilename, Err, Context);
mod = M.get();
if (mod == nullptr) {
Err.print(argv[0], errs());
OpenPOWER on IntegriCloud