From 25dd7c43731339dca2da34b02b256e63edb30c45 Mon Sep 17 00:00:00 2001 From: Martin Mory Date: Mon, 31 Jul 2023 14:10:43 +0200 Subject: [PATCH] fix uninitialized pointer that is used for SOO, making valgrind happy --- include/phasar/DataFlow/IfdsIde/EdgeFunction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/phasar/DataFlow/IfdsIde/EdgeFunction.h b/include/phasar/DataFlow/IfdsIde/EdgeFunction.h index 1c68c9b348..72f33565ac 100644 --- a/include/phasar/DataFlow/IfdsIde/EdgeFunction.h +++ b/include/phasar/DataFlow/IfdsIde/EdgeFunction.h @@ -263,7 +263,7 @@ class [[clang::trivial_abi]] EdgeFunction final : EdgeFunctionBase { : EdgeFunction( [](auto &&...Args) { if constexpr (IsSOOCandidate>) { - void *Ret; + void *Ret = nullptr; new (&Ret) ConcreteEF(std::forward(Args)...); return Ret; } else {