Author: Timm Bäder
Date: 2024-06-18T14:16:22+02:00
New Revision: bcaacf38920fe2b85e7d65e8c3832deefea96d21

URL: 
https://github.com/llvm/llvm-project/commit/bcaacf38920fe2b85e7d65e8c3832deefea96d21
DIFF: 
https://github.com/llvm/llvm-project/commit/bcaacf38920fe2b85e7d65e8c3832deefea96d21.diff

LOG: [clang][Interp][NFC] Fix a user-after-move

Reported by a static analyzer.

Added: 
    

Modified: 
    clang/lib/AST/Interp/InterpStack.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/Interp/InterpStack.h 
b/clang/lib/AST/Interp/InterpStack.h
index 9d85503b851be..4966e2870de6b 100644
--- a/clang/lib/AST/Interp/InterpStack.h
+++ b/clang/lib/AST/Interp/InterpStack.h
@@ -48,7 +48,6 @@ class InterpStack final {
 #endif
     T *Ptr = &peekInternal<T>();
     T Value = std::move(*Ptr);
-    Ptr->~T();
     shrink(aligned_size<T>());
     return Value;
   }


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to