diff options
| author | Yong He <yonghe@outlook.com> | 2017-11-04 18:07:09 -0400 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2017-11-04 18:07:09 -0400 |
| commit | d1009d1a5ac7463dc74169ed7c6e1e692b3541d7 (patch) | |
| tree | b21cd74ca6daabd655f5a2625c2698de16a92dd1 /source/slang/vm.cpp | |
| parent | 1f9686ce87573efdd4ad56040deb2d424fe51929 (diff) | |
| parent | 784bd914cface6e5837ef0da7aee0df2e16c4999 (diff) | |
merge with fixWarnings branch
Diffstat (limited to 'source/slang/vm.cpp')
| -rw-r--r-- | source/slang/vm.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/source/slang/vm.cpp b/source/slang/vm.cpp index d5bacaa36..d795a841b 100644 --- a/source/slang/vm.cpp +++ b/source/slang/vm.cpp @@ -513,8 +513,8 @@ void computeTypeSizeAlign( break; default: - impl->size = 0; SLANG_UNIMPLEMENTED_X("type sizing"); + UNREACHABLE(impl->size = 0); break; } @@ -597,6 +597,9 @@ VMType loadVMType( return getType(vmModule->vm, impl); } + + UNREACHABLE(SLANG_UNEXPECTED("unimplemented")); + UNREACHABLE_RETURN(VMType()); break; } } @@ -860,7 +863,7 @@ void resumeThread( case kIROp_BufferStore: { VMType resultType = decodeType(frame, &ip); - /*UInt argCount =*/ decodeUInt(&ip); + /*UInt argCount = */decodeUInt(&ip); char* bufferData = decodeOperand<char*>(frame, &ip); uint32_t index = decodeOperand<uint32_t>(frame, &ip); @@ -1021,7 +1024,7 @@ void resumeThread( // knowing too much about an instruction... VMType resultType = decodeType(frame, &ip); - /*UInt argCount =*/ decodeUInt(&ip); + /*UInt argCount = */decodeUInt(&ip); void* argPtrs[16] = { 0 }; auto leftOpnd = decodeOperandPtrAndType(frame, &ip); auto type = leftOpnd.type; @@ -1046,7 +1049,7 @@ void resumeThread( case kIROp_Mul: { VMType type = decodeType(frame, &ip); - /*UInt argCount =*/ decodeUInt(&ip); + /*UInt argCount = */decodeUInt(&ip); void* leftPtr = decodeOperandPtr<void>(frame, &ip); void* rightPtr = decodeOperandPtr<void>(frame, &ip); @@ -1068,7 +1071,7 @@ void resumeThread( case kIROp_Sub: { VMType type = decodeType(frame, &ip); - /*UInt argCount =*/ decodeUInt(&ip); + /*UInt argCount = */decodeUInt(&ip); void* leftPtr = decodeOperandPtr<void>(frame, &ip); void* rightPtr = decodeOperandPtr<void>(frame, &ip); |
