Skip to content

Commit 1529df7

Browse files
authored
[NFC] Update a comment (#4402)
The comment makes no sense in the context in which it appears. Signed-off-by: Eric Schweitz <eschweitz@nvidia.com>
1 parent 501cca4 commit 1529df7

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

lib/Optimizer/CodeGen/ConvertToQIRAPI.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,13 +271,12 @@ struct NullCableOpToCallsRewrite
271271
StringRef qirQubitArrayAllocate = cudaq::opt::QIRArrayQubitAllocateArray;
272272
Type arrayQubitTy = M::getArrayType(rewriter.getContext());
273273

274-
// AllocaOp could have a size operand, or the size could be compile time
275-
// known and encoded in the veq return type.
274+
// NullCableOp must have a constant size encoded in the `!quake.cable`
275+
// return type.
276276
auto loc = nullcable.getLoc();
277277
quake::CableType type = nullcable.getType();
278-
auto constantSize = type.getSize();
279-
Value sizeOperand =
280-
rewriter.create<arith::ConstantIntOp>(loc, constantSize, 64);
278+
auto width = type.getSize();
279+
Value sizeOperand = rewriter.create<arith::ConstantIntOp>(loc, width, 64);
281280

282281
// Replace the NullCableOp with the QIR call.
283282
rewriter.replaceOpWithNewOp<func::CallOp>(

0 commit comments

Comments
 (0)