[PATCH] D23429: [CUDA] Place GPU binary into .nv_fatbin section and align it by 8.

Justin Lebar via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 11 15:56:19 PDT 2016


jlebar added inline comments.

================
Comment at: lib/CodeGen/CGCUDANV.cpp:62
@@ -60,2 +61,3 @@
                                llvm::ConstantInt::get(SizeTy, 0)};
-    auto ConstStr = CGM.GetAddrOfConstantCString(Str, Name.c_str());
+    auto ConstStr = CGM.GetAddrOfConstantCString(Str, Name.data());
+    llvm::GlobalVariable *GV =
----------------
StringRefs aren't necessarily null-terminated.  :)


https://reviews.llvm.org/D23429





More information about the cfe-commits mailing list