Skip to content

Commit f881a38

Browse files
[CodeGen] Fix a warning
This patch fixes: clang/lib/CodeGen/CGBuiltin.cpp:19287:17: error: unused variable 'Ty' [-Werror,-Wunused-variable]
1 parent 0298c59 commit f881a38

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/CodeGen/CGBuiltin.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19284,8 +19284,7 @@ case Builtin::BI__builtin_hlsl_elementwise_isinf: {
1928419284
}
1928519285
case Builtin::BI__builtin_hlsl_wave_active_any_true: {
1928619286
Value *Op = EmitScalarExpr(E->getArg(0));
19287-
llvm::Type *Ty = Op->getType();
19288-
assert(Ty->isIntegerTy(1) &&
19287+
assert(Op->getType()->isIntegerTy(1) &&
1928919288
"Intrinsic WaveActiveAnyTrue operand must be a bool");
1929019289

1929119290
Intrinsic::ID ID = CGM.getHLSLRuntime().getWaveActiveAnyTrueIntrinsic();

0 commit comments

Comments
 (0)