[clang] a52cfb3 - [NFC] [ASTReader] Remove unused variables
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 26 23:00:37 PDT 2021
Author: Chuanqi Xu
Date: 2021-08-27T14:00:03+08:00
New Revision: a52cfb352378515b53c39b0e1480c9c69954d0c3
URL: https://github.com/llvm/llvm-project/commit/a52cfb352378515b53c39b0e1480c9c69954d0c3
DIFF: https://github.com/llvm/llvm-project/commit/a52cfb352378515b53c39b0e1480c9c69954d0c3.diff
LOG: [NFC] [ASTReader] Remove unused variables
Added:
Modified:
clang/lib/Serialization/ASTReader.cpp
Removed:
################################################################################
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp
index 1f9778dc6a0f0..376dbdf1bd557 100644
--- a/clang/lib/Serialization/ASTReader.cpp
+++ b/clang/lib/Serialization/ASTReader.cpp
@@ -4277,7 +4277,7 @@ ASTReader::ASTReadResult ASTReader::ReadAST(StringRef FileName,
ModuleFile &F = *M.Mod;
// Read the AST block.
- if (ASTReadResult Result = ReadASTBlock(F, ClientLoadCapabilities))
+ if (ReadASTBlock(F, ClientLoadCapabilities))
return Failure;
// The AST block should always have a definition for the main module.
@@ -4288,7 +4288,7 @@ ASTReader::ASTReadResult ASTReader::ReadAST(StringRef FileName,
// Read the extension blocks.
while (!SkipCursorToBlock(F.Stream, EXTENSION_BLOCK_ID)) {
- if (ASTReadResult Result = ReadExtensionBlock(F))
+ if (ReadExtensionBlock(F))
return Failure;
}
More information about the cfe-commits
mailing list