[HLSL][NFC] Fix static analyzer concerns (#120090)

Class BuiltinTypeMethodBuilder has a user-defined destructor so likely
compiler generated special functions may behave incorrectly. Delete
explicitly copy constructor and copy assignment operator to avoid
potential errors.
This commit is contained in:
Mariya Podchishchaeva
2024-12-17 14:37:48 +01:00
committed by GitHub
parent f1763888bb
commit fbbf1bed74

View File

@@ -559,6 +559,10 @@ private:
public:
~BuiltinTypeMethodBuilder() { finalizeMethod(); }
BuiltinTypeMethodBuilder(const BuiltinTypeMethodBuilder &Other) = delete;
BuiltinTypeMethodBuilder &
operator=(const BuiltinTypeMethodBuilder &Other) = delete;
Expr *getResourceHandleExpr() {
// The first statement added to a method or access to 'this' creates the
// declaration.