forked from OSchip/llvm-project
ValueMapper: Fix unused var warning. NFC
llvm-svn: 266529
This commit is contained in:
parent
b5c0025d1d
commit
e12bef7ea7
|
@ -505,6 +505,7 @@ bool MDNodeMapper::mapOperand(const Metadata *Op) {
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (Optional<Metadata *> MappedOp = M.mapSimpleMetadata(Op)) {
|
if (Optional<Metadata *> MappedOp = M.mapSimpleMetadata(Op)) {
|
||||||
|
#ifndef NDEBUG
|
||||||
if (auto *CMD = dyn_cast<ConstantAsMetadata>(Op))
|
if (auto *CMD = dyn_cast<ConstantAsMetadata>(Op))
|
||||||
assert((!*MappedOp || M.getVM().count(CMD->getValue()) ||
|
assert((!*MappedOp || M.getVM().count(CMD->getValue()) ||
|
||||||
M.getVM().getMappedMD(Op)) &&
|
M.getVM().getMappedMD(Op)) &&
|
||||||
|
@ -512,6 +513,7 @@ bool MDNodeMapper::mapOperand(const Metadata *Op) {
|
||||||
else
|
else
|
||||||
assert((isa<MDString>(Op) || M.getVM().getMappedMD(Op)) &&
|
assert((isa<MDString>(Op) || M.getVM().getMappedMD(Op)) &&
|
||||||
"Expected result to be memoized");
|
"Expected result to be memoized");
|
||||||
|
#endif
|
||||||
return *MappedOp != Op;
|
return *MappedOp != Op;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue