Skip to content

Commit a07e41c

Browse files
committed
ITS: TrackerTraits mark getEmptyBinsRect as consteval
Avoid invalid read on first call. Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent b99f7bb commit a07e41c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Detectors/ITSMFT/ITS/tracking/include/ITStracking/TrackerTraits.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,7 @@ class TrackerTraits
7878
bool isMatLUT() const;
7979

8080
// Others
81-
GPUhd() static constexpr int4 getEmptyBinsRect() { return int4{0, 0, 0, 0}; }
82-
const int4 getBinsRect(const Cluster&, int layer, float z1, float z2, float maxdeltaz, float maxdeltaphi) const;
83-
const int4 getBinsRect(int layer, float phi, float maxdeltaphi, float z, float maxdeltaz) const;
84-
const int4 getBinsRect(int layer, float phi, float maxdeltaphi, float z1, float z2, float maxdeltaz) const;
81+
GPUhd() static consteval int4 getEmptyBinsRect() { return int4{0, 0, 0, 0}; }
8582
const int4 getBinsRect(const Cluster&, int layer, float z1, float z2, float maxdeltaz, float maxdeltaphi) const noexcept;
8683
const int4 getBinsRect(int layer, float phi, float maxdeltaphi, float z, float maxdeltaz) const noexcept;
8784
const int4 getBinsRect(int layer, float phi, float maxdeltaphi, float z1, float z2, float maxdeltaz) const noexcept;

0 commit comments

Comments
 (0)