Skip to content

Commit 3ad9863

Browse files
committed
Improve comment
1 parent ec3c4f4 commit 3ad9863

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/DirectX/DXILOpLowering.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,8 @@ class OpLowerer {
533533
inconvertibleErrorCode());
534534

535535
// Since we're post-scalarizer, we likely have a vector that's constructed
536-
// solely for the argument of the store.
536+
// solely for the argument of the store. If so, just use the scalar values
537+
// from before they're inserted into the temporary.
537538
std::array<Value *, 4> DataElements{nullptr, nullptr, nullptr, nullptr};
538539
auto *IEI = dyn_cast<InsertElementInst>(Data);
539540
while (IEI) {

0 commit comments

Comments
 (0)