aboutsummaryrefslogtreecommitdiff
path: root/mlir/lib/Transforms/LoopInvariantCodeMotion.cpp
diff options
context:
space:
mode:
authorJacques Pienaar <jpienaar@google.com>2019-08-17 11:05:35 -0700
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-08-17 11:06:03 -0700
commit79f53b0cf1fd204af0a09c8e085dd09a1ce0b6d9 (patch)
tree066738742712f75cc95b5ea30ae10d9a9c379d8b /mlir/lib/Transforms/LoopInvariantCodeMotion.cpp
parentdbf8538b64a61d0b93420b293b8508b158377757 (diff)
downloadllvm-79f53b0cf1fd204af0a09c8e085dd09a1ce0b6d9.zip
llvm-79f53b0cf1fd204af0a09c8e085dd09a1ce0b6d9.tar.gz
llvm-79f53b0cf1fd204af0a09c8e085dd09a1ce0b6d9.tar.bz2
Change from llvm::make_unique to std::make_unique
Switch to C++14 standard method as llvm::make_unique has been removed ( https://reviews.llvm.org/D66259). Also mark some targets as c++14 to ease next integrates. PiperOrigin-RevId: 263953918
Diffstat (limited to 'mlir/lib/Transforms/LoopInvariantCodeMotion.cpp')
-rw-r--r--mlir/lib/Transforms/LoopInvariantCodeMotion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/LoopInvariantCodeMotion.cpp b/mlir/lib/Transforms/LoopInvariantCodeMotion.cpp
index 09fe9af..fddc890 100644
--- a/mlir/lib/Transforms/LoopInvariantCodeMotion.cpp
+++ b/mlir/lib/Transforms/LoopInvariantCodeMotion.cpp
@@ -77,7 +77,7 @@ static bool isMemRefDereferencingOp(Operation &op) {
}
std::unique_ptr<FunctionPassBase> mlir::createLoopInvariantCodeMotionPass() {
- return llvm::make_unique<LoopInvariantCodeMotion>();
+ return std::make_unique<LoopInvariantCodeMotion>();
}
// Returns true if the individual op is loop invariant.