]> granicus.if.org Git - clang/commitdiff
Use CodeGenFunction's getContext(), for consistency.
authorDan Gohman <gohman@apple.com>
Fri, 29 Oct 2010 22:47:07 +0000 (22:47 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 29 Oct 2010 22:47:07 +0000 (22:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117734 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenFunction.cpp

index d291d40c559342486bf9e6eae88718f3364fcb30..efeca2d538a5cc00103ee3158bcc2bcd9056a133 100644 (file)
@@ -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();
 }