]> granicus.if.org Git - clang/commitdiff
Fix MSVC build by renaming a variable. PR5043
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 25 Sep 2009 11:47:22 +0000 (11:47 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 25 Sep 2009 11:47:22 +0000 (11:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82762 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTContext.cpp

index 41e8d3604e703bfb37e1280343a7b7bd56a87c4c..48d1ce90b60d258252d7ac7c1bda879e39fd8f01 100644 (file)
@@ -1103,8 +1103,8 @@ QualType ASTContext::getNoReturnType(QualType T) {
     assert (T->isFunctionType()
             && "can't noreturn qualify non-pointer to function or block type");
 
-    if (const FunctionNoProtoType *F = T->getAs<FunctionNoProtoType>()) {
-      ResultType = getFunctionNoProtoType(F->getResultType(), true);
+    if (const FunctionNoProtoType *FNPT = T->getAs<FunctionNoProtoType>()) {
+      ResultType = getFunctionNoProtoType(FNPT->getResultType(), true);
     } else {
       const FunctionProtoType *F = T->getAs<FunctionProtoType>();
       ResultType