Fixed uninitialized variable issue.
authorAnastasia Stulova <anastasia.stulova@arm.com>
Mon, 19 Nov 2018 12:43:39 +0000 (12:43 +0000)
committerAnastasia Stulova <anastasia.stulova@arm.com>
Mon, 19 Nov 2018 12:43:39 +0000 (12:43 +0000)
This commit should fix failing bots.

llvm-svn: 347196

clang/lib/Sema/SemaType.cpp

index 97ceaf9..d9890aa 100644 (file)
@@ -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