rsmith added inline comments. ================ Comment at: lib/CodeGen/CGDeclCXX.cpp:312 @@ +311,3 @@ + // the checks have been done in Sema by now. Whatever initializers + // areallowed are empty and we just need to ignore them here. + if (getLangOpts().CUDA && getLangOpts().CUDAIsDevice && ---------------- areallowed -> are allowed
================ Comment at: lib/CodeGen/CodeGenModule.cpp:2334 @@ -2339,1 +2333,3 @@ + D->hasAttr<CUDASharedAttr>()) Init = llvm::UndefValue::get(getTypes().ConvertType(ASTTy)); + else if (!InitExpr) { ---------------- As this is a global variable, it should presumably still be statically zero-initialized. http://reviews.llvm.org/D15305 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits