Make exception handling more efficient
[deliverable/binutils-gdb.git] / gdb / common / new-op.c
index b230f111ae71924f9b2324ca3c36155d810c5f4c..7c5dba0be6da571adf38a6af4c47807159ad8bf6 100644 (file)
@@ -64,9 +64,9 @@ operator new (std::size_t sz)
        {
          malloc_failure (sz);
        }
-      catch (const gdb_exception &ex)
+      catch (gdb_exception &ex)
        {
-         throw gdb_quit_bad_alloc (ex);
+         throw gdb_quit_bad_alloc (std::move (ex));
        }
     }
   return p;
This page took 0.026043 seconds and 4 git commands to generate.