Skip to content

Commit e878428

Browse files
committed
Revert "Remove a top-level "using namespace" from TargetTransformInfoImpl.h"
Causing failures on many bots. This reverts commit 31efecf.
1 parent 02de975 commit e878428

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/Analysis/TargetTransformInfoImpl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
#include "llvm/IR/PatternMatch.h"
2525
#include <utility>
2626

27+
using namespace llvm::PatternMatch;
28+
2729
namespace llvm {
2830

2931
class Function;
@@ -958,8 +960,6 @@ class TargetTransformInfoImplCRTPBase : public TargetTransformInfoImplBase {
958960

959961
InstructionCost getUserCost(const User *U, ArrayRef<const Value *> Operands,
960962
TTI::TargetCostKind CostKind) {
961-
using namespace llvm::PatternMatch;
962-
963963
auto *TargetTTI = static_cast<T *>(this);
964964
// Handle non-intrinsic calls, invokes, and callbr.
965965
// FIXME: Unlikely to be true for anything but CodeSize.

0 commit comments

Comments
 (0)