Skip to content

Commit 804df7c

Browse files
committed
[gardening] Standardize a bit of code style. NFC.
In this file, by and large we use 'Type *'. This file converts a couple of places where we use 'Type*' => 'Type *'.
1 parent edce501 commit 804df7c

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

include/swift/SIL/SILBasicBlock.h

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public llvm::ilist_node<SILBasicBlock>, public SILAllocated<SILBasicBlock> {
124124
}
125125

126126
const TermInst *getTerminator() const {
127-
return const_cast<SILBasicBlock*>(this)->getTerminator();
127+
return const_cast<SILBasicBlock *>(this)->getTerminator();
128128
}
129129

130130
/// \brief Splits a basic block into two at the specified instruction.
@@ -271,7 +271,7 @@ public llvm::ilist_node<SILBasicBlock>, public SILAllocated<SILBasicBlock> {
271271
}
272272

273273
const SILBasicBlock *getSinglePredecessor() const {
274-
return const_cast<SILBasicBlock*>(this)->getSinglePredecessor();
274+
return const_cast<SILBasicBlock *>(this)->getSinglePredecessor();
275275
}
276276

277277
/// Pretty-print the SILBasicBlock.
@@ -319,7 +319,6 @@ namespace llvm {
319319
template <>
320320
struct ilist_traits<::swift::SILBasicBlock>
321321
: ilist_default_traits<::swift::SILBasicBlock> {
322-
323322
using SelfTy = ilist_traits<::swift::SILBasicBlock>;
324323
using SILBasicBlock = ::swift::SILBasicBlock;
325324
using SILFunction = ::swift::SILFunction;
@@ -332,19 +331,17 @@ struct ilist_traits<::swift::SILBasicBlock>
332331
SILFunction *Parent;
333332

334333
public:
335-
336334
SILBasicBlock *createSentinel() const {
337-
return static_cast<SILBasicBlock*>(&Sentinel);
335+
return static_cast<SILBasicBlock *>(&Sentinel);
338336
}
339337
void destroySentinel(SILBasicBlock *) const {}
340338

341339
SILBasicBlock *provideInitialHead() const { return createSentinel(); }
342-
SILBasicBlock *ensureHead(SILBasicBlock*) const { return createSentinel(); }
343-
static void noteHead(SILBasicBlock*, SILBasicBlock*) {}
340+
SILBasicBlock *ensureHead(SILBasicBlock *) const { return createSentinel(); }
341+
static void noteHead(SILBasicBlock *, SILBasicBlock *) {}
344342
static void deleteNode(SILBasicBlock *BB) { BB->~SILBasicBlock(); }
345343

346-
void addNodeToList(SILBasicBlock *BB) {
347-
}
344+
void addNodeToList(SILBasicBlock *BB) {}
348345

349346
void transferNodesFromList(ilist_traits<SILBasicBlock> &SrcTraits,
350347
ilist_iterator<SILBasicBlock> First,

0 commit comments

Comments
 (0)