mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Don't declare void result that's unused for void function calls
This commit is contained in:
@@ -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