summaryrefslogtreecommitdiff
path: root/nn/runtime/ModelBuilder.cpp
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2018-04-23 10:14:58 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-04-23 10:14:58 +0000
commit597ec94dd22dcbecc0d1db3646c910b12ae5bb87 (patch)
treeae9c1164a76d212174087d700e1b439408249ce3 /nn/runtime/ModelBuilder.cpp
parent56a09d4da981c00ce9709abad6c5d34325e18ea6 (diff)
parenta144106df8f9b82251a5e584b1b083fb39d33b88 (diff)
downloadml-597ec94dd22dcbecc0d1db3646c910b12ae5bb87.tar.gz
Merge "Error code fix and added new (std::nothrow) where needed." into pi-dev
Diffstat (limited to 'nn/runtime/ModelBuilder.cpp')
-rw-r--r--nn/runtime/ModelBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/nn/runtime/ModelBuilder.cpp b/nn/runtime/ModelBuilder.cpp
index d136f5b48..f8c318eca 100644
--- a/nn/runtime/ModelBuilder.cpp
+++ b/nn/runtime/ModelBuilder.cpp
@@ -301,7 +301,7 @@ int ModelBuilder::createCompilation(CompilationBuilder** compilation) {
*compilation = nullptr;
return ANEURALNETWORKS_BAD_STATE;
}
- *compilation = new CompilationBuilder(this);
+ *compilation = new (std::nothrow) CompilationBuilder(this);
return (*compilation ? ANEURALNETWORKS_NO_ERROR : ANEURALNETWORKS_OUT_OF_MEMORY);
}