Skip to content

Commit bb08010

Browse files
[CodeGen] Remove unnecessary casts (NFC) (#146463)
Both of these functions return void.
1 parent 11ecd47 commit bb08010

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/CodeGen/CGStmtOpenMP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ CodeGenFunction::GenerateOpenMPCapturedStmtFunction(const CapturedStmt &S,
713713
VLASizeMap[VLASizePair.second.first] = VLASizePair.second.second;
714714
PGO->assignRegionCounters(GlobalDecl(CD), F);
715715
CapturedStmtInfo->EmitBody(*this, CD->getBody());
716-
(void)LocalScope.ForceCleanup();
716+
LocalScope.ForceCleanup();
717717
FinishFunction(CD->getBodyRBrace());
718718
if (!NeedWrapperFunction)
719719
return F;

clang/lib/CodeGen/ConstantInitBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ ConstantAggregateBuilderBase::getAddrOfPosition(llvm::Type *type,
160160
nullptr, "");
161161
Builder.SelfReferences.emplace_back(dummy);
162162
auto &entry = Builder.SelfReferences.back();
163-
(void)getGEPIndicesTo(entry.Indices, position + Begin);
163+
getGEPIndicesTo(entry.Indices, position + Begin);
164164
return dummy;
165165
}
166166

0 commit comments

Comments
 (0)