diff options
Diffstat (limited to 'llvm/lib/Transforms/IPO/BlockExtractor.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/BlockExtractor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/BlockExtractor.cpp b/llvm/lib/Transforms/IPO/BlockExtractor.cpp index 9b15f185745..125c7b7d426 100644 --- a/llvm/lib/Transforms/IPO/BlockExtractor.cpp +++ b/llvm/lib/Transforms/IPO/BlockExtractor.cpp @@ -74,7 +74,7 @@ ModulePass *llvm::createBlockExtractorPass( /// Gets all of the blocks specified in the input file. void BlockExtractor::loadFile() { auto ErrOrBuf = MemoryBuffer::getFile(BlockExtractorFile); - if (std::error_code EC = ErrOrBuf.getError()) + if (ErrOrBuf.getError()) report_fatal_error("BlockExtractor couldn't load the file."); // Read the file. auto &Buf = *ErrOrBuf; |