| commit | 55eca2853e4f096be189208770034a8a4fb72666 | [log] [tgz] |
|---|---|---|
| author | Johannes Doerfert <johannes@jdoerfert.de> | Fri Mar 13 23:42:05 2020 -0500 |
| committer | Johannes Doerfert <johannes@jdoerfert.de> | Mon Mar 23 14:23:46 2020 -0500 |
| tree | c426a800147ad758e98c307d6dd335ae175ad0a9 | |
| parent | 6b57d7f57d2cec7ec717757a6a52f2203d6e9db7 [diff] [blame] |
[OpenMP][NFC] Minimize memory usage and copying of `OMPTraitInfo`s See rational here: https://reviews.llvm.org/D71830#1922656 Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D76173
diff --git a/clang/lib/AST/OpenMPClause.cpp b/clang/lib/AST/OpenMPClause.cpp index 5f9da85..87ab3e3 100644 --- a/clang/lib/AST/OpenMPClause.cpp +++ b/clang/lib/AST/OpenMPClause.cpp
@@ -1964,3 +1964,7 @@ TI.print(OS, Policy); return OS; } +llvm::raw_ostream &clang::operator<<(llvm::raw_ostream &OS, + const OMPTraitInfo *TI) { + return TI ? OS << *TI : OS; +}