diff options
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r-- | llvm/lib/IR/ConstantFold.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/IR/InlineAsm.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/IR/Value.cpp | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/IR/ConstantFold.cpp b/llvm/lib/IR/ConstantFold.cpp index c06a99c0536..7bbe9b74cdc 100644 --- a/llvm/lib/IR/ConstantFold.cpp +++ b/llvm/lib/IR/ConstantFold.cpp @@ -925,7 +925,7 @@ Constant *llvm::ConstantFoldBinaryInstruction(unsigned Opcode, // Handle undef ^ undef -> 0 special case. This is a common // idiom (misuse). return Constant::getNullValue(C1->getType()); - // Fallthrough + LLVM_FALLTHROUGH; case Instruction::Add: case Instruction::Sub: return UndefValue::get(C1->getType()); diff --git a/llvm/lib/IR/InlineAsm.cpp b/llvm/lib/IR/InlineAsm.cpp index d6cf8c543db..5a911857104 100644 --- a/llvm/lib/IR/InlineAsm.cpp +++ b/llvm/lib/IR/InlineAsm.cpp @@ -265,7 +265,7 @@ bool InlineAsm::Verify(FunctionType *Ty, StringRef ConstStr) { break; } ++NumIndirect; - // FALLTHROUGH for Indirect Outputs. + LLVM_FALLTHROUGH; // We fall through for Indirect Outputs. case InlineAsm::isInput: if (NumClobbers) return false; // inputs before clobbers. ++NumInputs; diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp index b523497b247..be704a778a8 100644 --- a/llvm/lib/IR/Value.cpp +++ b/llvm/lib/IR/Value.cpp @@ -449,7 +449,7 @@ static Value *stripPointerCastsAndOffsets(Value *V) { case PSK_InBoundsConstantIndices: if (!GEP->hasAllConstantIndices()) return V; - // fallthrough + LLVM_FALLTHROUGH; case PSK_InBounds: if (!GEP->isInBounds()) return V; @@ -848,7 +848,7 @@ void ValueHandleBase::ValueIsRAUWd(Value *Old, Value *New) { // virtual (or inline) interface to handle this though, so instead we make // the TrackingVH accessors guarantee that a client never sees this value. - // FALLTHROUGH + LLVM_FALLTHROUGH; case Weak: // Weak goes to the new value, which will unlink it from Old's list. Entry->operator=(New); |