[llvm] r323271 - BlockExtractor: Remove unused variable. NFC.
Volkan Keles via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 23 14:24:34 PST 2018
Author: volkan
Date: Tue Jan 23 14:24:34 2018
New Revision: 323271
URL: http://llvm.org/viewvc/llvm-project?rev=323271&view=rev
Log:
BlockExtractor: Remove unused variable. NFC.
Modified:
llvm/trunk/lib/Transforms/IPO/BlockExtractor.cpp
Modified: llvm/trunk/lib/Transforms/IPO/BlockExtractor.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/BlockExtractor.cpp?rev=323271&r1=323270&r2=323271&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/BlockExtractor.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/BlockExtractor.cpp Tue Jan 23 14:24:34 2018
@@ -74,7 +74,7 @@ ModulePass *llvm::createBlockExtractorPa
/// 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;
More information about the llvm-commits
mailing list