Skip to content

Commit

Permalink
One-line change from code review.
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Schweitz <eschweitz@nvidia.com>
  • Loading branch information
schweitzpgi committed Feb 3, 2025
1 parent 172ade4 commit 1b93cbe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Optimizer/CodeGen/QuakeToLLVM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1375,9 +1375,8 @@ class CustomUnitaryOpRewrite
auto unitaryData =
rewriter.create<LLVM::BitcastOp>(loc, complex64PtrTy, addrOp);

std::string qirFunctionName = cudaq::opt::QIRCustomOp;
if (op.isAdj())
qirFunctionName += "__adj";
StringRef qirFunctionName =
op.isAdj() ? cudaq::opt::QIRCustomAdjOp : cudaq::opt::QIRCustomOp;

FlatSymbolRefAttr customSymbolRef =
cudaq::opt::factory::createLLVMFunctionSymbol(
Expand Down

0 comments on commit 1b93cbe

Please sign in to comment.