projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4768363
)
[DemandedBits] Add braces to large if (NFC)
author
Nikita Popov
<nikita.ppv@gmail.com>
Thu, 10 Sep 2020 20:11:04 +0000
(22:11 +0200)
committer
Nikita Popov
<nikita.ppv@gmail.com>
Thu, 10 Sep 2020 20:13:27 +0000
(22:13 +0200)
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
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/DemandedBits.cpp
b/llvm/lib/Analysis/DemandedBits.cpp
index
62e08f3
..
1575d15
100644
(file)
--- 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<IntrinsicInst>(UserI))
+ if (const IntrinsicInst *II = dyn_cast<IntrinsicInst>(UserI))
{
switch (II->getIntrinsicID()) {
default: break;
case Intrinsic::bswap:
@@
-171,6
+171,7
@@
void DemandedBits::determineLiveOperandBits(
break;
}
}
+ }
break;
case Instruction::Add:
if (AOut.isMask()) {