Skip to content

Commit ebefe83

Browse files
committed
[NFC] Fix spelling 'constanst' -> 'constants'
1 parent 2c0f2b5 commit ebefe83

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/include/llvm/IR/Value.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ class Value {
242242
///
243243
/// This is useful when you just want to print 'int %reg126', not the
244244
/// instruction that generated it. If you specify a Module for context, then
245-
/// even constanst get pretty-printed; for example, the type of a null
245+
/// even constants get pretty-printed; for example, the type of a null
246246
/// pointer is printed symbolically.
247247
/// @{
248248
void printAsOperand(raw_ostream &O, bool PrintType = true,

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10286,7 +10286,7 @@ SDValue DAGCombiner::visitSRA(SDNode *N) {
1028610286
// If truncate is free for the target sext(shl) is likely to result in better
1028710287
// code.
1028810288
if (N0.getOpcode() == ISD::SHL && N1C) {
10289-
// Get the two constanst of the shifts, CN0 = m, CN = n.
10289+
// Get the two constants of the shifts, CN0 = m, CN = n.
1029010290
const ConstantSDNode *N01C = isConstOrConstSplat(N0.getOperand(1));
1029110291
if (N01C) {
1029210292
LLVMContext &Ctx = *DAG.getContext();

0 commit comments

Comments
 (0)