We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9219b26 commit f6581ccCopy full SHA for f6581cc
lib/Optimizer/CodeGen/ConvertToQIRAPI.cpp
@@ -136,6 +136,9 @@ struct QIRAPITypeConverter : public TypeConverter {
136
addConversion(
137
[&](quake::MeasureType ty) { return getResultType(ty.getContext()); });
138
addConversion([&](quake::MeasurementsType ty) {
139
+ // `MeasurementsType` should be eliminated before codegen.
140
+ // This fallback uses an opaque pointer to avoid crashing if
141
+ // the type leaks through unexpectedly.
142
return LLVM::LLVMPointerType::get(ty.getContext());
143
});
144
addConversion([&](quake::StruqType ty) { return convertStruqType(ty); });
0 commit comments