Feedback from PR

This commit is contained in:
nachocpol
2026-08-03 20:05:06 +09:00
committed by Baldur Karlsson
parent 0ba299366b
commit b857463968
3 changed files with 5 additions and 5 deletions
@@ -236,8 +236,8 @@ void Program::ParseConstant(ValueList &values, const LLVMBC::BlockOrRecord &cons
c->setCompound(alloc, std::move(members));
values.addValue();
}
else if(IS_KNOWN(constant.id, ConstantsRecord::EVAL_GEP) ||
IS_KNOWN(constant.id, ConstantsRecord::EVAL_GEP_OLD))
else if(IS_KNOWN(constant.id, ConstantsRecord::EVAL_INBOUNDS_GEP) ||
IS_KNOWN(constant.id, ConstantsRecord::EVAL_GEP))
{
Constant *c = values.nextValue<Constant>();
@@ -1808,7 +1808,7 @@ void ProgramEditor::EncodeConstants(LLVMBC::BitcodeWriter &writer,
vals.push_back(getValueID(c->getMembers()[m]));
}
writer.Record(LLVMBC::ConstantsRecord::EVAL_GEP, vals);
writer.Record(LLVMBC::ConstantsRecord::EVAL_INBOUNDS_GEP, vals);
}
else if(IsCast(c->op))
{
+2 -2
View File
@@ -111,8 +111,8 @@ enum class ConstantsRecord : uint32_t
CSTRING = 9,
EVAL_BINOP = 10,
EVAL_CAST = 11,
EVAL_GEP_OLD = 12,
EVAL_GEP = 20,
EVAL_GEP = 12,
EVAL_INBOUNDS_GEP = 20,
DATA = 22,
};