r347196 - Fixed uninitialized variable issue.
Anastasia Stulova via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 19 04:43:39 PST 2018
Author: stulova
Date: Mon Nov 19 04:43:39 2018
New Revision: 347196
URL: http://llvm.org/viewvc/llvm-project?rev=347196&view=rev
Log:
Fixed uninitialized variable issue.
This commit should fix failing bots.
Modified:
cfe/trunk/lib/Sema/SemaType.cpp
Modified: cfe/trunk/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaType.cpp?rev=347196&r1=347195&r2=347196&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Mon Nov 19 04:43:39 2018
@@ -7205,7 +7205,7 @@ static void deduceOpenCLImplicitAddrSpac
(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
More information about the cfe-commits
mailing list