echristo added inline comments. ================ Comment at: lib/CodeGen/CGCUDABuiltin.cpp:109 @@ -106,1 +108,3 @@ + // stacksave/stackrestore intrinsics, which cause ptxas to choke. + auto *Alloca = new llvm::AllocaInst( llvm::Type::getInt8Ty(Ctx), llvm::ConstantInt::get(Int32Ty, BufSize), ---------------- Not quite, you'll want to use AllocaInsertPt for this or even CreateTempAlloca.
http://reviews.llvm.org/D16664 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits