Skip to content

Commit e170e9a

Browse files
committed
more clang-format, remove duplicated code
1 parent 15ca850 commit e170e9a

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

clang/lib/CIR/CodeGen/CIRGenCall.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ class ReturnValueSlot {
171171

172172
public:
173173
ReturnValueSlot() = default;
174-
ReturnValueSlot(Address addr, bool isVolatile) : addr(addr), isVolatileFlag(isVolatile) {}
174+
ReturnValueSlot(Address addr, bool isVolatile)
175+
: addr(addr), isVolatileFlag(isVolatile) {}
175176
bool isNull() const { return !addr.isValid(); }
176177
bool isVolatile() const { return isVolatileFlag; }
177178
Address getAddress() const { return addr; }

clang/lib/CIR/CodeGen/CIRGenValue.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -113,21 +113,6 @@ class RValue {
113113
er.isVolatile = isVolatile;
114114
return er;
115115
}
116-
117-
// FIXME: Aggregate rvalues need to retain information about whether they are
118-
// volatile or not. Remove default to find all places that probably get this
119-
// wrong.
120-
121-
/// Convert an Address to an RValue. If the Address is not
122-
/// signed, create an RValue using the unsigned address. Otherwise, resign the
123-
/// address using the provided type.
124-
static RValue getAggregate(Address addr, bool isVolatile = false) {
125-
RValue ER;
126-
ER.aggregateAddr = addr;
127-
ER.flavor = Aggregate;
128-
ER.isVolatile = isVolatile;
129-
return ER;
130-
}
131116
};
132117

133118
/// The source of the alignment of an l-value; an expression of

0 commit comments

Comments
 (0)