aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LowerSwitch.cpp
diff options
context:
space:
mode:
authorc8ef <c8ef@outlook.com>2024-07-14 19:28:11 +0800
committerGitHub <noreply@github.com>2024-07-14 13:28:11 +0200
commit3f222f3bc65ca5acaa0c00d61ae132d10bf79282 (patch)
treea246e3cbd866b45b15dfe9831d9059b47af75456 /llvm/lib/Transforms/Utils/LowerSwitch.cpp
parentc8dc21d77fc82d9360953100aa328a13185f8ba0 (diff)
downloadllvm-3f222f3bc65ca5acaa0c00d61ae132d10bf79282.zip
llvm-3f222f3bc65ca5acaa0c00d61ae132d10bf79282.tar.gz
llvm-3f222f3bc65ca5acaa0c00d61ae132d10bf79282.tar.bz2
[NFC] Fix some typos (#98791)
Diffstat (limited to 'llvm/lib/Transforms/Utils/LowerSwitch.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LowerSwitch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LowerSwitch.cpp b/llvm/lib/Transforms/Utils/LowerSwitch.cpp
index 55f3544..b5c4e93 100644
--- a/llvm/lib/Transforms/Utils/LowerSwitch.cpp
+++ b/llvm/lib/Transforms/Utils/LowerSwitch.cpp
@@ -369,7 +369,7 @@ void ProcessSwitchInst(SwitchInst *SI,
const unsigned NumSimpleCases = Clusterify(Cases, SI);
IntegerType *IT = cast<IntegerType>(SI->getCondition()->getType());
const unsigned BitWidth = IT->getBitWidth();
- // Explictly use higher precision to prevent unsigned overflow where
+ // Explicitly use higher precision to prevent unsigned overflow where
// `UnsignedMax - 0 + 1 == 0`
APInt UnsignedZero(BitWidth + 1, 0);
APInt UnsignedMax = APInt::getMaxValue(BitWidth);