From 0c702a1c3eec34535f7ac3b5af3692b47998b18e Mon Sep 17 00:00:00 2001 From: Matthew Bentham Date: Thu, 7 Feb 2019 11:35:09 +0000 Subject: Github #123 Catch exceptions by reference Change-Id: Ie664cb7127434ad9c7a03c4a31f3c71fdebd49b9 Signed-off-by: Matthew Bentham --- src/armnn/LayerSupport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/armnn/LayerSupport.cpp b/src/armnn/LayerSupport.cpp index 484251ca97..12b3c403a7 100644 --- a/src/armnn/LayerSupport.cpp +++ b/src/armnn/LayerSupport.cpp @@ -58,7 +58,7 @@ namespace armnn isSupported = layerSupportObject->func(__VA_ARGS__, Optional(reasonIfUnsupportedFull)); \ CopyErrorMessage(reasonIfUnsupported, reasonIfUnsupportedFull.c_str(), reasonIfUnsupportedMaxLength); \ } \ - } catch (InvalidArgumentException e) { \ + } catch (const InvalidArgumentException &e) { \ /* re-throwing with more context information */ \ throw InvalidArgumentException(e, "Failed to check layer support", CHECK_LOCATION()); \ } \ -- cgit v1.2.1