From: David Chisnall Date: Mon, 17 Aug 2009 23:18:30 +0000 (+0000) Subject: Fixed typo in last commit pointed out by Anton. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=91f21c0c8319306121308241795e9c7ba61b0514;p=clang Fixed typo in last commit pointed out by Anton. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79290 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/TargetABIInfo.cpp b/lib/CodeGen/TargetABIInfo.cpp index 77b19bdbd1..e28a1940a6 100644 --- a/lib/CodeGen/TargetABIInfo.cpp +++ b/lib/CodeGen/TargetABIInfo.cpp @@ -1526,7 +1526,7 @@ const ABIInfo &CodeGenTypes::getABIInfo() const { const char *TargetPrefix = getContext().Target.getTargetPrefix(); if (strcmp(TargetPrefix, "x86") == 0) { bool IsDarwin = strstr(getContext().Target.getTargetTriple(), "darwin"); - bool isPPCStructReturnABI = IsDarwin || + bool isRegStructReturnABI = IsDarwin || strstr(getContext().Target.getTargetTriple(), "cygwin") || strstr(getContext().Target.getTargetTriple(), "mingw") || strstr(getContext().Target.getTargetTriple(), "netware") || @@ -1535,7 +1535,7 @@ const ABIInfo &CodeGenTypes::getABIInfo() const { switch (getContext().Target.getPointerWidth(0)) { case 32: return *(TheABIInfo = - new X86_32ABIInfo(Context, IsDarwin, isPPCStructReturnABI)); + new X86_32ABIInfo(Context, IsDarwin, isRegStructReturnABI)); case 64: return *(TheABIInfo = new X86_64ABIInfo()); }