Skip to content

Commit

Permalink
Fix release build failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-perron committed Apr 3, 2018
1 parent 1fccc6c commit c92cf00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/opt/mem_pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ ir::Instruction* MemPass::GetPtr(uint32_t ptrId, uint32_t* varId) {
}

ir::Instruction* MemPass::GetPtr(ir::Instruction* ip, uint32_t* varId) {
const SpvOp op = ip->opcode();
assert(op == SpvOpStore || op == SpvOpLoad || op == SpvOpImageTexelPointer);
assert(ip->opcode() == SpvOpStore || ip->opcode() == SpvOpLoad ||
ip->opcode() == SpvOpImageTexelPointer);

// All of these opcode place the pointer in position 0.
const uint32_t ptrId = ip->GetSingleWordInOperand(0);
Expand Down

0 comments on commit c92cf00

Please sign in to comment.