Skip to content

Commit bcaacf3

Browse files
committed
[clang][Interp][NFC] Fix a user-after-move
Reported by a static analyzer.
1 parent ced41a1 commit bcaacf3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clang/lib/AST/Interp/InterpStack.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ class InterpStack final {
4848
#endif
4949
T *Ptr = &peekInternal<T>();
5050
T Value = std::move(*Ptr);
51-
Ptr->~T();
5251
shrink(aligned_size<T>());
5352
return Value;
5453
}

0 commit comments

Comments
 (0)