Skip to content

Commit fc9a517

Browse files
committed
clang-format
1 parent 7cbf99b commit fc9a517

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

llvm/include/llvm/IR/GEPNoWrapFlags.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
namespace llvm {
1717

1818
class GEPNoWrapFlags {
19-
enum : unsigned{
19+
enum : unsigned {
2020
InBoundsFlag = (1 << 0),
2121
NUSWFlag = (1 << 1),
2222
NUWFlag = (1 << 2),
@@ -56,7 +56,7 @@ class GEPNoWrapFlags {
5656
return GEPNoWrapFlags(Flags & ~InBoundsFlag);
5757
}
5858
GEPNoWrapFlags withoutNoUnsignedSignedWrap() const {
59-
return GEPNoWrapFlags(Flags & ~(InBoundsFlag|NUSWFlag));
59+
return GEPNoWrapFlags(Flags & ~(InBoundsFlag | NUSWFlag));
6060
}
6161
GEPNoWrapFlags withoutNoUnsignedWrap() const {
6262
return GEPNoWrapFlags(Flags & ~NUWFlag);

llvm/lib/Analysis/ConstantFolding.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,9 +1004,9 @@ Constant *ConstantFoldInstOperandsImpl(const Value *InstOrCE, unsigned Opcode,
10041004
if (Constant *C = SymbolicallyEvaluateGEP(GEP, Ops, DL, TLI))
10051005
return C;
10061006

1007-
return ConstantExpr::getGetElementPtr(
1008-
SrcElemTy, Ops[0], Ops.slice(1), GEP->getNoWrapFlags(),
1009-
GEP->getInRange());
1007+
return ConstantExpr::getGetElementPtr(SrcElemTy, Ops[0], Ops.slice(1),
1008+
GEP->getNoWrapFlags(),
1009+
GEP->getInRange());
10101010
}
10111011

10121012
if (auto *CE = dyn_cast<ConstantExpr>(InstOrCE)) {

llvm/lib/AsmParser/LLParser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4313,8 +4313,8 @@ bool LLParser::parseValID(ValID &ID, PerFunctionState *PFS, Type *ExpectedTy) {
43134313
if (!GetElementPtrInst::getIndexedType(Ty, Indices))
43144314
return error(ID.Loc, "invalid getelementptr indices");
43154315

4316-
ID.ConstantVal = ConstantExpr::getGetElementPtr(
4317-
Ty, Elts[0], Indices, NW, InRange);
4316+
ID.ConstantVal =
4317+
ConstantExpr::getGetElementPtr(Ty, Elts[0], Indices, NW, InRange);
43184318
} else if (Opc == Instruction::ShuffleVector) {
43194319
if (Elts.size() != 3)
43204320
return error(ID.Loc, "expected three operands to shufflevector");

0 commit comments

Comments
 (0)