aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Bentham <Matthew.Bentham@arm.com>2019-02-07 11:35:09 +0000
committerMatteo Martincigh <matteo.martincigh@arm.com>2019-02-08 10:53:48 +0000
commit0c702a1c3eec34535f7ac3b5af3692b47998b18e (patch)
treee851db658b62627e52f53e7299c35b3311c99440
parent6d302bfb568962f3b6b6f012b260ce54f22d36a0 (diff)
downloadarmnn-0c702a1c3eec34535f7ac3b5af3692b47998b18e.tar.gz
Github #123 Catch exceptions by reference
Change-Id: Ie664cb7127434ad9c7a03c4a31f3c71fdebd49b9 Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com>
-rw-r--r--src/armnn/LayerSupport.cpp2
1 files changed, 1 insertions, 1 deletions
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<std::string&>(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()); \
} \