From: Dan Gohman Date: Fri, 29 Oct 2010 22:47:07 +0000 (+0000) Subject: Use CodeGenFunction's getContext(), for consistency. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc07a55b68342a230aafd8875cc7a26450dd3f64;p=clang Use CodeGenFunction's getContext(), for consistency. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117734 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index d291d40c55..efeca2d538 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -663,7 +663,7 @@ llvm::Value *CodeGenFunction::EmitVLASize(QualType Ty) { } llvm::Value* CodeGenFunction::EmitVAListRef(const Expr* E) { - if (CGM.getContext().getBuiltinVaListType()->isArrayType()) + if (getContext().getBuiltinVaListType()->isArrayType()) return EmitScalarExpr(E); return EmitLValue(E).getAddress(); }