projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91dc545
)
Wrap CfgTraitsFor in namespace llvm to please GCC 5
author
Lei Zhang
<antiagainst@google.com>
Tue, 20 Oct 2020 17:04:02 +0000
(13:04 -0400)
committer
Lei Zhang
<antiagainst@google.com>
Tue, 20 Oct 2020 17:04:02 +0000
(13:04 -0400)
mlir/include/mlir/IR/Dominance.h
patch
|
blob
|
history
diff --git
a/mlir/include/mlir/IR/Dominance.h
b/mlir/include/mlir/IR/Dominance.h
index
24d7183
..
7b41f8b
100644
(file)
--- a/
mlir/include/mlir/IR/Dominance.h
+++ b/
mlir/include/mlir/IR/Dominance.h
@@
-45,10
+45,11
@@
public:
} // namespace mlir
-template <>
-
struct llvm::
CfgTraitsFor<mlir::Block> {
+namespace llvm {
+
template <> struct
CfgTraitsFor<mlir::Block> {
using CfgTraits = mlir::CfgTraits;
};
+} // namespace llvm
extern template class llvm::DominatorTreeBase<mlir::Block, false>;
extern template class llvm::DominatorTreeBase<mlir::Block, true>;