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:
parent
4b68201166
commit
d184f0b9df
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user