mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 15:06:32 +00:00
Feedback from PR
This commit is contained in:
committed by
Baldur Karlsson
parent
0ba299366b
commit
b857463968
@@ -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))
|
||||
{
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user