summaryrefslogtreecommitdiff
path: root/parallel-libs/streamexecutor/lib/DeviceMemory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parallel-libs/streamexecutor/lib/DeviceMemory.cpp')
-rw-r--r--parallel-libs/streamexecutor/lib/DeviceMemory.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/parallel-libs/streamexecutor/lib/DeviceMemory.cpp b/parallel-libs/streamexecutor/lib/DeviceMemory.cpp
index 62b702b8acf..8447a60b1ca 100644
--- a/parallel-libs/streamexecutor/lib/DeviceMemory.cpp
+++ b/parallel-libs/streamexecutor/lib/DeviceMemory.cpp
@@ -19,10 +19,9 @@
namespace streamexecutor {
GlobalDeviceMemoryBase::~GlobalDeviceMemoryBase() {
- if (Handle) {
+ if (Handle)
// TODO(jhen): How to handle errors here.
consumeError(TheDevice->freeDeviceMemory(*this));
- }
}
} // namespace streamexecutor