summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-09-17 05:41:02 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-09-17 05:41:02 +0000
commit05188a646d9e5c097a9d18fcae397c6312fe786d (patch)
treec734e39198b3e91c338697eb68d39f46e28e9a17 /llvm/lib
parent8d904e95348fe0c5e56aae8696c04acb846fc8eb (diff)
downloadbcm5719-llvm-05188a646d9e5c097a9d18fcae397c6312fe786d.tar.gz
bcm5719-llvm-05188a646d9e5c097a9d18fcae397c6312fe786d.zip
[MIR Parser] Fix Build!
Last-second refactoring before push was bad idea... llvm-svn: 281812
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/MIRParser/MIRParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MIRParser.cpp b/llvm/lib/CodeGen/MIRParser/MIRParser.cpp
index 35614d3b77b..9b0c5099680 100644
--- a/llvm/lib/CodeGen/MIRParser/MIRParser.cpp
+++ b/llvm/lib/CodeGen/MIRParser/MIRParser.cpp
@@ -828,6 +828,7 @@ std::unique_ptr<MIRParser> llvm::createMIRParserFromFile(StringRef Filename,
std::unique_ptr<MIRParser>
llvm::createMIRParser(std::unique_ptr<MemoryBuffer> Contents,
LLVMContext &Context) {
+ auto Filename = Contents->getBufferIdentifier();
if (Context.shouldDiscardValueNames()) {
Context.diagnose(DiagnosticInfoMIRParser(
DS_Error,
@@ -836,7 +837,6 @@ llvm::createMIRParser(std::unique_ptr<MemoryBuffer> Contents,
"Can't read MIR with a Context that discards named Values")));
return nullptr;
}
- auto Filename = Contents->getBufferIdentifier();
return llvm::make_unique<MIRParser>(
llvm::make_unique<MIRParserImpl>(std::move(Contents), Filename, Context));
}
OpenPOWER on IntegriCloud