Skip to content

Commit c495630

Browse files
committed
Adopt suggestions.
1 parent bbe17fa commit c495630

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/Sema/SemaExpr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6576,7 +6576,7 @@ ExprResult Sema::BuildCallExpr(Scope *Scope, Expr *Fn, SourceLocation LParenLoc,
65766576
// without any additional checking.
65776577
if (Fn->getType() == Context.BuiltinFnTy && ArgExprs.size() == 1 &&
65786578
ArgExprs[0]->getType() == Context.BuiltinFnTy) {
6579-
auto *FD = cast<FunctionDecl>(Fn->getReferencedDeclOfCallee());
6579+
const auto *FD = cast<FunctionDecl>(Fn->getReferencedDeclOfCallee());
65806580

65816581
if (FD->getName() == "__builtin_amdgcn_is_invocable") {
65826582
QualType FnPtrTy = Context.getPointerType(FD->getType());

clang/lib/Sema/SemaInit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9103,7 +9103,7 @@ bool InitializationSequence::Diagnose(Sema &S,
91039103
case FK_ConversionFailed: {
91049104
QualType FromType = OnlyArg->getType();
91059105
// __amdgpu_feature_predicate_t can be explicitly cast to the logical op
9106-
// type, although this is almost always an error and we advise against it
9106+
// type, although this is almost always an error and we advise against it.
91079107
if (FromType == S.Context.AMDGPUFeaturePredicateTy &&
91089108
DestType == S.Context.getLogicalOperationType()) {
91099109
S.Diag(OnlyArg->getExprLoc(),

0 commit comments

Comments
 (0)