Skip to content

Commit

Permalink
error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizhangNV committed Dec 31, 2024
1 parent 604ed2c commit 46179e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/slang/slang-ir-specialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1330,10 +1330,10 @@ struct SpecializationContext
if (!returnTypeNeedSpecialization && !argumentNeedSpecialization)
{
auto firstParam = calleeFunc->getFirstParam();
auto firstArg = inst->getArg(0);
if (!firstParam || !firstArg)
if (!firstParam)
return false;

auto firstArg = inst->getArg(0);
// If the first parameter is `this_type(interface_type)`, we will try to see if we
// can specialize this type to some concrete type.
//
Expand Down

0 comments on commit 46179e4

Please sign in to comment.