summaryrefslogtreecommitdiffstats
path: root/source/slang/vm.cpp
diff options
context:
space:
mode:
authorMatt Pharr <matt@pharr.org>2018-10-22 07:45:09 -0700
committerTim Foley <tfoleyNV@users.noreply.github.com>2018-10-22 07:45:09 -0700
commitcda9c3b1a712715209a3f4ba155c1425898334cb (patch)
tree9814bed442a388d8c1e025b07f92499b0ae0da2e /source/slang/vm.cpp
parent53731f674601a2eb81c5715957d2e0e65637aee3 (diff)
Osx build fixes (#681)
* Remove 'register' qualifiers. These will be illegal come c++17 and give a warning on OSX. * Add UNREACHABLE_RETURNs to silence compiler warnings. * Make FileStream::GetPosition() compile on OSX (w.r.t. the linux build, I believe that strictly-speaking, fpos64_t is specified as an opaque type and the cast to an Int64 is not necessarily well-defined.) * Avoid an inadvertent trigraph.
Diffstat (limited to 'source/slang/vm.cpp')
-rw-r--r--source/slang/vm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/vm.cpp b/source/slang/vm.cpp
index f5f5540f5..fa59a741b 100644
--- a/source/slang/vm.cpp
+++ b/source/slang/vm.cpp
@@ -415,11 +415,11 @@ void dumpVMFrame(VMFrame* vmFrame)
break;
case kIROp_HLSLRWStructuredBufferType:
- fprintf(stderr, ": RWStructuredBuffer<???> = ???");
+ fprintf(stderr, ": RWStructuredBuffer<??\?> = ???");
break;
case kIROp_HLSLStructuredBufferType:
- fprintf(stderr, ": StructuredBuffer<???> = ???");
+ fprintf(stderr, ": StructuredBuffer<??\?> = ???");
break;
case kIROp_BoolType: