Fix unused variable warning in release builds. (#365)
This commit is contained in:
Родитель
23f9b82096
Коммит
8ad339c806
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче