aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/Sema/DeclSpec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Sema/DeclSpec.h b/include/clang/Sema/DeclSpec.h
index bd419e3e69..aab63c0863 100644
--- a/include/clang/Sema/DeclSpec.h
+++ b/include/clang/Sema/DeclSpec.h
@@ -1376,7 +1376,7 @@ public:
/// (looking through parentheses).
DeclaratorChunk::FunctionTypeInfo &getFunctionTypeInfo() {
assert(isFunctionDeclarator() && "Not a function declarator!");
- unsigned index;
+ unsigned index = 0;
isFunctionDeclarator(index);
return DeclTypeInfo[index].Fun;
}