From b70e9e871decfb790b783cf18f0a62b5df929581 Mon Sep 17 00:00:00 2001 From: Simon Atanasyan Date: Sat, 16 Apr 2016 11:49:40 +0000 Subject: [PATCH] ValueMapper: Fix unused var warning. NFC llvm-svn: 266529 --- lib/Transforms/Utils/ValueMapper.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Transforms/Utils/ValueMapper.cpp b/lib/Transforms/Utils/ValueMapper.cpp index d12ae926e47..e22922b9fbb 100644 --- a/lib/Transforms/Utils/ValueMapper.cpp +++ b/lib/Transforms/Utils/ValueMapper.cpp @@ -505,6 +505,7 @@ bool MDNodeMapper::mapOperand(const Metadata *Op) { return false; if (Optional MappedOp = M.mapSimpleMetadata(Op)) { +#ifndef NDEBUG if (auto *CMD = dyn_cast(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(Op) || M.getVM().getMappedMD(Op)) && "Expected result to be memoized"); +#endif return *MappedOp != Op; }