From 8e9bebdea69c590dedfbf27374114cb76fe12fbd Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 21 Oct 2008 16:13:35 +0000 Subject: Preliminary support for function overloading git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57909 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExprConstant.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/CGExprConstant.cpp') diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp index 783bb1c67a..5fc513d125 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/lib/CodeGen/CGExprConstant.cpp @@ -371,7 +371,7 @@ public: } llvm::Constant *VisitDeclRefExpr(DeclRefExpr *E) { - const ValueDecl *Decl = E->getDecl(); + const NamedDecl *Decl = E->getDecl(); if (const EnumConstantDecl *EC = dyn_cast(Decl)) return llvm::ConstantInt::get(EC->getInitVal()); assert(0 && "Unsupported decl ref type!"); @@ -769,7 +769,7 @@ public: return C; } case Expr::DeclRefExprClass: { - ValueDecl *Decl = cast(E)->getDecl(); + NamedDecl *Decl = cast(E)->getDecl(); if (const FunctionDecl *FD = dyn_cast(Decl)) return CGM.GetAddrOfFunction(FD); if (const VarDecl* VD = dyn_cast(Decl)) { -- cgit v1.2.3-70-g09d2