summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/BlockExtractor.cpp
diff options
context:
space:
mode:
authorVolkan Keles <vkeles@apple.com>2018-01-23 22:24:34 +0000
committerVolkan Keles <vkeles@apple.com>2018-01-23 22:24:34 +0000
commitebf34ea316271905a7125228d57d042bec6413e0 (patch)
tree8b5411f28b9da2524333c23bfc042b09763a3331 /llvm/lib/Transforms/IPO/BlockExtractor.cpp
parent7abe9887b0af5df201db93ce8ce97abafd0a363e (diff)
downloadbcm5719-llvm-ebf34ea316271905a7125228d57d042bec6413e0.tar.gz
bcm5719-llvm-ebf34ea316271905a7125228d57d042bec6413e0.zip
BlockExtractor: Remove unused variable. NFC.
llvm-svn: 323271
Diffstat (limited to 'llvm/lib/Transforms/IPO/BlockExtractor.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/BlockExtractor.cpp2
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;
OpenPOWER on IntegriCloud