summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/lib/xray/xray_function_call_trie.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/compiler-rt/lib/xray/xray_function_call_trie.h b/compiler-rt/lib/xray/xray_function_call_trie.h
index 2eca5b25f05..95f760f788a 100644
--- a/compiler-rt/lib/xray/xray_function_call_trie.h
+++ b/compiler-rt/lib/xray/xray_function_call_trie.h
@@ -150,7 +150,6 @@ public:
using NodeAllocatorType = NodeArray::AllocatorType;
using RootAllocatorType = RootArray::AllocatorType;
using ShadowStackAllocatorType = ShadowStackArray::AllocatorType;
- using NodeIdPairAllocatorType = NodeIdPairAllocatorType;
NodeAllocatorType *NodeAllocator = nullptr;
RootAllocatorType *RootAllocator = nullptr;
@@ -240,11 +239,10 @@ public:
profilerFlags()->per_thread_allocator_max, 0);
A.ShadowStackAllocator = ShadowStackAllocator;
- auto NodeIdPairAllocator =
- reinterpret_cast<Allocators::NodeIdPairAllocatorType *>(
- InternalAlloc(sizeof(Allocators::NodeIdPairAllocatorType)));
- new (NodeIdPairAllocator) Allocators::NodeIdPairAllocatorType(
- profilerFlags()->per_thread_allocator_max, 0);
+ auto NodeIdPairAllocator = reinterpret_cast<NodeIdPairAllocatorType *>(
+ InternalAlloc(sizeof(NodeIdPairAllocatorType)));
+ new (NodeIdPairAllocator)
+ NodeIdPairAllocatorType(profilerFlags()->per_thread_allocator_max, 0);
A.NodeIdPairAllocator = NodeIdPairAllocator;
return A;
}
OpenPOWER on IntegriCloud