diff options
Diffstat (limited to 'include/llvm/DebugInfo.h')
-rw-r--r-- | include/llvm/DebugInfo.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h index 997d01e994..bbb274329c 100644 --- a/include/llvm/DebugInfo.h +++ b/include/llvm/DebugInfo.h @@ -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. |