[compiler-rt] r333628 - [XRay] Fixup: Remove unnecessary type alias

Dean Michael Berris via llvm-commits llvm-commits at lists.llvm.org
Wed May 30 22:25:47 PDT 2018


Author: dberris
Date: Wed May 30 22:25:47 2018
New Revision: 333628

URL: http://llvm.org/viewvc/llvm-project?rev=333628&view=rev
Log:
[XRay] Fixup: Remove unnecessary type alias

Follow-up to D45758.

Modified:
    compiler-rt/trunk/lib/xray/xray_function_call_trie.h

Modified: compiler-rt/trunk/lib/xray/xray_function_call_trie.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/xray/xray_function_call_trie.h?rev=333628&r1=333627&r2=333628&view=diff
==============================================================================
--- compiler-rt/trunk/lib/xray/xray_function_call_trie.h (original)
+++ compiler-rt/trunk/lib/xray/xray_function_call_trie.h Wed May 30 22:25:47 2018
@@ -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;
   }




More information about the llvm-commits mailing list