Skip to content

Commit

Permalink
Support insertvalue with null operand
Browse files Browse the repository at this point in the history
%.pmcpy.fca.0.4.0.insert.i = insertvalue %struct.semaphore %.pmcpy.fca.0.3.insert.i, %struct.lock_class_key* null, 0, 4, 0
  • Loading branch information
caballa committed Nov 7, 2019
1 parent 86d083c commit 63f713d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DsaLocal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ void IntraBlockBuilder::visitInsertValueInst(InsertValueInst &I) {
out.setModified();

// -- update link
if (!isSkip(v)) {
if (!isSkip(v) && !isNullConstant(v)) {
// TODO: follow valueCell ptrs.
Cell vCell = valueCell(v);
assert(!vCell.isNull());
Expand Down

0 comments on commit 63f713d

Please sign in to comment.