Merge pull request #4162 from pmatos/WarningAvoid

Avoid warning on assertionless builds
This commit is contained in:
Ryan Houdek 2024-11-17 19:03:31 -08:00 committed by GitHub
commit 1bf06f8946
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -641,8 +641,7 @@ def print_ir_allocator_helpers():
output_file.write("\t}\n\n")
output_file.write("\tuint8_t GetOpElements(const OrderedNode *Op) const {\n")
output_file.write("\t\tauto HeaderOp = Op->Header.Value.GetNode(DualListData.DataBegin());\n")
output_file.write("\t\tLOGMAN_THROW_A_FMT(OpHasDest(Op), \"Op {} has no dest\\n\", GetName(HeaderOp->Op));\n")
output_file.write("\t\tLOGMAN_THROW_A_FMT(OpHasDest(Op), \"Op {} has no dest\\n\", GetOpName(Op));\n")
output_file.write("\t\treturn IR::OpSizeToSize(GetOpSize(Op)) / IR::OpSizeToSize(GetOpElementSize(Op));\n")
output_file.write("\t}\n\n")