Trying to un-break the bots.
authorManman Ren <manman.ren@gmail.com>
Thu, 5 Sep 2013 19:44:52 +0000 (19:44 +0000)
committerManman Ren <manman.ren@gmail.com>
Thu, 5 Sep 2013 19:44:52 +0000 (19:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190092 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo.h

index 997d01e9946290f737538bde2fe9bef3e2fabd58..bbb274329cb23f98153e4c0e382812501022b2ed 100644 (file)
@@ -158,7 +158,8 @@ namespace llvm {
   /// Represents reference to a DIType, abstracts over direct and
   /// identifier-based metadata type references.
   class DITypeRef {
-    friend DITypeRef DIDescriptor::getFieldAs<DITypeRef>(unsigned Elt) const;
+    template <typename DescTy>
+    friend DescTy DIDescriptor::getFieldAs(unsigned Elt) const;
 
     /// TypeVal can be either a MDNode or a MDString, in the latter,
     /// MDString specifies the type identifier.