Skip to content

Commit eec7231

Browse files
authored
[IRGen] Fix logical op parentheses warning (#66963)
1 parent bd11fce commit eec7231

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/IRGen/GenValueWitness.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -902,8 +902,8 @@ static bool isRuntimeInstatiatedLayoutString(IRGenModule &IGM,
902902
static llvm::Constant *getEnumTagFunction(IRGenModule &IGM,
903903
const EnumTypeLayoutEntry *typeLayoutEntry,
904904
GenericSignature genericSig) {
905-
if (!typeLayoutEntry->layoutString(IGM, genericSig) &&
906-
!isRuntimeInstatiatedLayoutString(IGM, typeLayoutEntry) ||
905+
if ((!typeLayoutEntry->layoutString(IGM, genericSig) &&
906+
!isRuntimeInstatiatedLayoutString(IGM, typeLayoutEntry)) ||
907907
typeLayoutEntry->isSingleton()) {
908908
return nullptr;
909909
} else if (!typeLayoutEntry->isFixedSize(IGM)) {

0 commit comments

Comments
 (0)