Skip to content

Commit e6a4b05

Browse files
committed
fix a few more issues with pr
1 parent 53690ba commit e6a4b05

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/lib/Target/DirectX/DXILLegalizePass.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ static void upcastI8AllocasAndUses(Instruction &I,
175175

176176
Type *SmallestType = nullptr;
177177

178-
// Gather all cast targets
179178
for (User *U : AI->users()) {
180179
auto *Load = dyn_cast<LoadInst>(U);
181180
if (!Load)
@@ -247,9 +246,9 @@ downcastI64toI32InsertExtractElements(Instruction &I,
247246
}
248247
}
249248

250-
void emitMemsetExpansion(IRBuilder<> &Builder, Value *Dst, Value *Val,
251-
ConstantInt *SizeCI,
252-
DenseMap<Value *, Value *> &ReplacedValues) {
249+
static void emitMemsetExpansion(IRBuilder<> &Builder, Value *Dst, Value *Val,
250+
ConstantInt *SizeCI,
251+
DenseMap<Value *, Value *> &ReplacedValues) {
253252
LLVMContext &Ctx = Builder.getContext();
254253
[[maybe_unused]] const DataLayout &DL =
255254
Builder.GetInsertBlock()->getModule()->getDataLayout();

0 commit comments

Comments
 (0)