mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-26 22:34:39 +00:00
ValueMapper: Fix unused var warning. NFC
llvm-svn: 266529
This commit is contained in:
parent
70b295014e
commit
b70e9e871d
@ -505,6 +505,7 @@ bool MDNodeMapper::mapOperand(const Metadata *Op) {
|
||||
return false;
|
||||
|
||||
if (Optional<Metadata *> MappedOp = M.mapSimpleMetadata(Op)) {
|
||||
#ifndef NDEBUG
|
||||
if (auto *CMD = dyn_cast<ConstantAsMetadata>(Op))
|
||||
assert((!*MappedOp || M.getVM().count(CMD->getValue()) ||
|
||||
M.getVM().getMappedMD(Op)) &&
|
||||
@ -512,6 +513,7 @@ bool MDNodeMapper::mapOperand(const Metadata *Op) {
|
||||
else
|
||||
assert((isa<MDString>(Op) || M.getVM().getMappedMD(Op)) &&
|
||||
"Expected result to be memoized");
|
||||
#endif
|
||||
return *MappedOp != Op;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user