mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-10 14:21:31 +00:00
Don't declare void result that's unused for void function calls
This commit is contained in:
1 parent
8dd535eb26
commit
6de5e5e144
1 file changed
+1
-1
@@ -668,7 +668,7 @@ struct SPVInstruction
|
||||
|
||||
string ret = "";
|
||||
|
||||
if(!inlineOp)
|
||||
if(!inlineOp && op->type->type != SPVTypeData::eVoid)
|
||||
ret = StringFormat::Fmt("%s %s = ", op->type->GetName().c_str(), GetIDName().c_str());
|
||||
|
||||
ret += ids[op->funcCall]->GetIDName() + "(";
|
||||
|
||||
Reference in new issue
Block a user