1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

[InstCombine] Silence unused variable warning in Release builds.

llvm-svn: 294788
This commit is contained in:
Benjamin Kramer 2017-02-10 22:04:17 +00:00
parent 4b68201166
commit d184f0b9df

View File

@ -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);
}