summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2018-05-31 05:25:47 +0000
committerDean Michael Berris <dberris@google.com>2018-05-31 05:25:47 +0000
commitd1fe5066944af4947846efdfbf2009e45b39cfb6 (patch)
treef682cf7140f7ac677c87db9d0065e4749f97b9e6
parent16c865b0719a098670bed108cf4eef8b067766c4 (diff)
downloadbcm5719-llvm-d1fe5066944af4947846efdfbf2009e45b39cfb6.tar.gz
bcm5719-llvm-d1fe5066944af4947846efdfbf2009e45b39cfb6.zip
[XRay] Fixup: Remove unnecessary type alias
Follow-up to D45758. llvm-svn: 333628
-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