From 99e78cb7185db1a15afd33020a1e026dc7ac5e1b Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 10 Sep 2020 22:11:04 +0200 Subject: [PATCH] [DemandedBits] Add braces to large if (NFC) While the if only contains a single statement, it happens to be a huge switch. Add braces to make this code easier to read. --- llvm/lib/Analysis/DemandedBits.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Analysis/DemandedBits.cpp b/llvm/lib/Analysis/DemandedBits.cpp index 62e08f3..1575d15 100644 --- a/llvm/lib/Analysis/DemandedBits.cpp +++ b/llvm/lib/Analysis/DemandedBits.cpp @@ -115,7 +115,7 @@ void DemandedBits::determineLiveOperandBits( default: break; case Instruction::Call: case Instruction::Invoke: - if (const IntrinsicInst *II = dyn_cast(UserI)) + if (const IntrinsicInst *II = dyn_cast(UserI)) { switch (II->getIntrinsicID()) { default: break; case Intrinsic::bswap: @@ -171,6 +171,7 @@ void DemandedBits::determineLiveOperandBits( break; } } + } break; case Instruction::Add: if (AOut.isMask()) { -- 2.7.4