Fix unused variable warning in release builds. (#365)

This commit is contained in:
Marcelo Lopez Ruiz 2017-06-17 20:27:53 -07:00 коммит произвёл GitHub
Родитель 23f9b82096
Коммит 8ad339c806
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -6734,9 +6734,7 @@ void ResourceToHandle::ReplaceResourceWithHandle(Value *ResPtr,
SI->replaceUsesOfWith(LI, TmpRes);
} else {
CallInst *CI = cast<CallInst>(ldU);
HLOpcodeGroup group =
hlsl::GetHLOpcodeGroupByName(CI->getCalledFunction());
DXASSERT(group == HLOpcodeGroup::HLCreateHandle,
DXASSERT(hlsl::GetHLOpcodeGroupByName(CI->getCalledFunction()) == HLOpcodeGroup::HLCreateHandle,
"must be createHandle");
CI->replaceAllUsesWith(Handle);
CI->eraseFromParent();
@ -6812,4 +6810,4 @@ INITIALIZE_PASS(ResourceToHandle, "resource-handle",
// Public interface to the ResourceToHandle pass
ModulePass *llvm::createResourceToHandlePass() {
return new ResourceToHandle();
}
}