From: Anastasia Stulova Date: Mon, 19 Nov 2018 12:43:39 +0000 (+0000) Subject: Fixed uninitialized variable issue. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25f96b4a20fc022424a84a5dc755d15a83644011;p=clang Fixed uninitialized variable issue. This commit should fix failing bots. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@347196 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index 97ceaf97ff..d9890aa34b 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -7205,7 +7205,7 @@ static void deduceOpenCLImplicitAddrSpace(TypeProcessingState &State, (T->isVoidType() && !IsPointee)) return; - LangAS ImpAddr; + LangAS ImpAddr = LangAS::Default; // Put OpenCL automatic variable in private address space. // OpenCL v1.2 s6.5: // The default address space name for arguments to a function in a