Skip to content

Commit

Permalink
[SYCLomatic] Fix coverity issue 0514 (#1979)
Browse files Browse the repository at this point in the history
Signed-off-by: Huang, Andy <[email protected]>
  • Loading branch information
AndyCHHuang authored May 15, 2024
1 parent 08f13ec commit efc0a4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clang/lib/AST/ASTContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9631,7 +9631,11 @@ static uint64_t getRVVTypeSize(ASTContext &Context, const BuiltinType *Ty) {
EltSize = 1;

unsigned MinElts = Info.EC.getKnownMinValue();
#ifdef SYCLomatic_CUSTOMIZATION
return (uint64_t)VScale->first * (uint64_t)MinElts * (uint64_t)EltSize;
#else
return VScale->first * MinElts * EltSize;
#endif
}

bool ASTContext::areCompatibleRVVTypes(QualType FirstType,
Expand Down

0 comments on commit efc0a4f

Please sign in to comment.