================
@@ -696,15 +712,17 @@ Value *CodeGenFunction::EmitHLSLBuiltinExpr(unsigned 
BuiltinID,
     Args.push_back(HandleOp);
     Args.push_back(SamplerOp);
     Args.push_back(CoordOp);
-    Args.push_back(emitHlslOffset(*this, E, 3, getOffsetType(CGM, RT)));
+    const unsigned OffsetIdx = 3;
----------------
hekota wrote:

```suggestion
    constexpr unsigned OffsetIdx = 3;
```
These should probably be constexpr.

https://github.com/llvm/llvm-project/pull/218520
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to