switch (CFI->getOperation()) {
case MCCFIInstruction::OpDefCfa:
CfaOffset = CFI->getOffset();
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case MCCFIInstruction::OpDefCfaRegister:
CfaReg = CFI->getRegister();
break;
false)));
}
}
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case MCCFIInstruction::OpUndefined:
case MCCFIInstruction::OpDefCfa:
case MCCFIInstruction::OpOffset:
case MCCFIInstruction::OpDefCfa:
CfaOffset = -CFI->getOffset();
recordAccess(&Inst, CfaOffset);
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case MCCFIInstruction::OpDefCfaRegister:
CfaReg = CFI->getRegister();
break;
if (isUpper8BitReg(Operand.getReg()))
return true;
}
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
default:
return false;
}
switch (State) {
case BIG_WORD:
Flush(I - 1); // FOOBar: first token is FOO, not FOOB.
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case ONE_BIG:
State = SMALL_WORD;
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case SMALL_WORD:
break;
default:
switch (State) {
case ONE_BIG:
State = BIG_WORD;
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case BIG_WORD:
break;
default:
}
break;
}
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case clang::CK_IntegralCast:
// Convert integral and no-op casts between builtin types and enums to
// static_cast. A cast from enum to integer may be unnecessary, but it's
Stream << "(" << LP.Callable.UsageIdentifier << ")";
break;
}
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case CE_InitExpression:
Stream << LP.Callable.UsageIdentifier;
break;
case Stmt::ForStmtClass:
case Stmt::SwitchStmtClass:
++Info.Branches;
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case Stmt::CompoundStmtClass:
TrackedParent.push_back(true);
break;
#ifndef NDEBUG
llvm_unreachable("Don't expect members from index in code completion");
#else
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
#endif
case index::SymbolKind::Function:
// We can't group overloads together that need different #includes.
switch (State) {
case UsingNamespace:
NSName.clear();
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case UsingNamespaceName:
NSName.append(Tok.text(SM).str());
State = UsingNamespaceName;
break;
case Namespace:
NSName.clear();
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case NamespaceName:
NSName.append(Tok.text(SM).str());
State = NamespaceName;
switch (State) {
case UsingNamespace:
NSName.clear();
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case UsingNamespaceName:
NSName.append("::");
State = UsingNamespaceName;
switch (Roles[I]) {
case Head:
Flush();
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case Tail:
Word.push_back(Content[I]);
break;
PeerAccessMatrix[SrcDevId][DstDevId] = PeerAccessState::Yes;
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
}
case PeerAccessState::Yes: {
Err = cuMemcpyPeerAsync(
return true;
case FMRB_OnlyReadsArgumentPointees:
ReadOnly = true;
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case FMRB_OnlyWritesArgumentPointees:
case FMRB_OnlyAccessesArgumentPointees: {
auto AccType = ReadOnly ? MemoryAccess::READ : MemoryAccess::MAY_WRITE;
if (!ModelReadOnlyScalars)
break;
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case VirtualUse::Inter:
// Do not create another MemoryAccess for reloading the value if one already
case Instruction::FAdd:
if (!BinOp->isFast())
return MemoryAccess::RT_NONE;
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case Instruction::Add:
return MemoryAccess::RT_ADD;
case Instruction::Or:
case Instruction::FMul:
if (!BinOp->isFast())
return MemoryAccess::RT_NONE;
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case Instruction::Mul:
if (DisableMultiplicativeReductions)
return MemoryAccess::RT_NONE;
if (!isValidAccess(&II, AF, BP, Context))
return false;
}
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case Intrinsic::memset:
AF = SE.getSCEVAtScope(cast<MemIntrinsic>(II).getDest(), L);
if (!AF->isZero()) {
// enabled.
if (!VUse.getMemoryAccess())
break;
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case VirtualUse::Inter:
assert(VUse.getMemoryAccess());
WorklistAccs.push_back(VUse.getMemoryAccess());
// reuse the information about UseStmt for DefStmt
DefStmt = UseStmt;
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case VirtualUse::Inter:
Instruction *Inst = cast<Instruction>(UseVal);