Skip to content

Commit

Permalink
fix access to uninit var
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed Jul 14, 2024
1 parent e430459 commit fa0504c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ir/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ vector<Byte> Memory::load(const Pointer &ptr, unsigned bytes, set<expr> &undef,
loaded[i].add(poison, cond);
}
} else {
uint64_t blk_size;
uint64_t blk_size = UINT64_MAX;
bool single_load = ptr.blockSize().isUInt(blk_size) && blk_size == bytes;
auto offset = ptr.getShortOffset();
expr blk_offset = single_load ? expr::mkUInt(0, offset) : offset;
Expand Down

0 comments on commit fa0504c

Please sign in to comment.