[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:
committed by
GitHub
parent
f1763888bb
commit
fbbf1bed74
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user