Skip to content

Commit

Permalink
[InstCombine] Silence unused variable warning in Release builds.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294788 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
d0k committed Feb 10, 2017
1 parent 4a82780 commit ae4dfb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,12 @@ void PointerReplacer::replace(Instruction *I) {
}

void PointerReplacer::replacePointer(Instruction &I, Value *V) {
#ifndef NDEBUG
auto *PT = cast<PointerType>(I.getType());
auto *NT = cast<PointerType>(V->getType());
assert(PT != NT && PT->getElementType() == NT->getElementType() &&
"Invalid usage");
#endif
WorkMap[&I] = V;
findLoadAndReplace(I);
}
Expand Down

0 comments on commit ae4dfb9

Please sign in to comment.