summaryrefslogtreecommitdiffstats
path: root/parallel-libs/streamexecutor/lib/unittests/KernelTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parallel-libs/streamexecutor/lib/unittests/KernelTest.cpp')
-rw-r--r--parallel-libs/streamexecutor/lib/unittests/KernelTest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/parallel-libs/streamexecutor/lib/unittests/KernelTest.cpp b/parallel-libs/streamexecutor/lib/unittests/KernelTest.cpp
index addcb83ec64..9974e994023 100644
--- a/parallel-libs/streamexecutor/lib/unittests/KernelTest.cpp
+++ b/parallel-libs/streamexecutor/lib/unittests/KernelTest.cpp
@@ -14,9 +14,9 @@
#include <cassert>
-#include "streamexecutor/Interfaces.h"
#include "streamexecutor/Kernel.h"
#include "streamexecutor/KernelSpec.h"
+#include "streamexecutor/PlatformInterfaces.h"
#include "streamexecutor/StreamExecutor.h"
#include "llvm/ADT/STLExtras.h"
@@ -42,7 +42,8 @@ namespace se = ::streamexecutor;
class MockStreamExecutor : public se::StreamExecutor {
public:
MockStreamExecutor()
- : Unique(llvm::make_unique<se::KernelInterface>()), Raw(Unique.get()) {}
+ : se::StreamExecutor(nullptr),
+ Unique(llvm::make_unique<se::KernelInterface>()), Raw(Unique.get()) {}
// Moves the unique pointer into the returned se::Expected instance.
//
OpenPOWER on IntegriCloud