diff options
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 41e8d3604e..48d1ce90b6 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -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 |