Skip to content

Commit a176669

Browse files
committed
[clang] Fix -Wunused-variable in CGBuiltin.cpp (NFC)
/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp:19441:17: error: unused variable 'Ty' [-Werror,-Wunused-variable] llvm::Type *Ty = Op->getType(); ^ 1 error generated.
1 parent 6e58e99 commit a176669

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
@@ -19438,8 +19438,7 @@ case Builtin::BI__builtin_hlsl_elementwise_isinf: {
1943819438
}
1943919439
case Builtin::BI__builtin_hlsl_wave_active_all_true: {
1944019440
Value *Op = EmitScalarExpr(E->getArg(0));
19441-
llvm::Type *Ty = Op->getType();
19442-
assert(Ty->isIntegerTy(1) &&
19441+
assert(Op->getType()->isIntegerTy(1) &&
1944319442
"Intrinsic WaveActiveAllTrue operand must be a bool");
1944419443

1944519444
Intrinsic::ID ID = CGM.getHLSLRuntime().getWaveActiveAllTrueIntrinsic();

0 commit comments

Comments
 (0)