diff --git a/lldb/test/Shell/Recognizer/Inputs/verbose_trap-in-stl.cpp b/lldb/test/Shell/Recognizer/Inputs/verbose_trap-in-stl.cpp index 4f01827944e166..20db722ef105da 100644 --- a/lldb/test/Shell/Recognizer/Inputs/verbose_trap-in-stl.cpp +++ b/lldb/test/Shell/Recognizer/Inputs/verbose_trap-in-stl.cpp @@ -1,7 +1,7 @@ namespace std { inline namespace __1 { template struct vector { - void operator[](unsigned) { __builtin_verbose_trap("Bounds error", "out-of-bounds access"); } + T& operator[](unsigned) { __builtin_verbose_trap("Bounds error", "out-of-bounds access"); } }; } // namespace __1 } // namespace std