Skip to content

Commit a1e85fe

Browse files
committed
Make getBoundsSafetySoftTrapRuntimeFuncs return a const reference
1 parent 1d41e24 commit a1e85fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/InstrumentationRuntime/BoundsSafety/InstrumentationRuntimeBoundsSafety.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ LLDB_PLUGIN_DEFINE(InstrumentationRuntimeBoundsSafety)
3838
#define BOUNDS_SAFETY_SOFT_TRAP_MINIMAL "__bounds_safety_soft_trap"
3939
#define BOUNDS_SAFETY_SOFT_TRAP_S "__bounds_safety_soft_trap_s"
4040

41-
std::vector<std::string> &getBoundsSafetySoftTrapRuntimeFuncs() {
41+
const std::vector<std::string> &getBoundsSafetySoftTrapRuntimeFuncs() {
4242
static std::vector<std::string> Funcs = {BOUNDS_SAFETY_SOFT_TRAP_MINIMAL,
4343
BOUNDS_SAFETY_SOFT_TRAP_S};
4444

0 commit comments

Comments
 (0)