mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 12:26:50 +00:00
CGHLSLBuiltins.cpp: Suppress a warning in #131237 [-Wunused-variable]
This commit is contained in:
parent
4532512f6c
commit
4088c70f4e
@ -381,8 +381,7 @@ Value *CodeGenFunction::EmitHLSLBuiltinExpr(unsigned BuiltinID,
|
||||
ArrayRef<Value *>{Op0, Op1}, nullptr, "hlsl.dot");
|
||||
}
|
||||
case Builtin::BI__builtin_hlsl_dot2add: {
|
||||
llvm::Triple::ArchType Arch = CGM.getTarget().getTriple().getArch();
|
||||
assert(Arch == llvm::Triple::dxil &&
|
||||
assert(CGM.getTarget().getTriple().getArch() == llvm::Triple::dxil &&
|
||||
"Intrinsic dot2add is only allowed for dxil architecture");
|
||||
Value *A = EmitScalarExpr(E->getArg(0));
|
||||
Value *B = EmitScalarExpr(E->getArg(1));
|
||||
|
Loading…
x
Reference in New Issue
Block a user