[libclc] r240881 - Properly initialize Module pointer
Jeroen Ketema
j.ketema at imperial.ac.uk
Sat Jun 27 05:35:56 PDT 2015
Author: jketema
Date: Sat Jun 27 07:35:54 2015
New Revision: 240881
URL: http://llvm.org/viewvc/llvm-project?rev=240881&view=rev
Log:
Properly initialize Module pointer
Modified:
libclc/trunk/utils/prepare-builtins.cpp
Modified: libclc/trunk/utils/prepare-builtins.cpp
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/utils/prepare-builtins.cpp?rev=240881&r1=240880&r2=240881&view=diff
==============================================================================
--- libclc/trunk/utils/prepare-builtins.cpp (original)
+++ libclc/trunk/utils/prepare-builtins.cpp Sat Jun 27 07:35:54 2015
@@ -34,7 +34,7 @@ int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, "libclc builtin preparation tool\n");
std::string ErrorMessage;
- Module *M;
+ Module *M = nullptr;
{
ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr =
More information about the cfe-commits
mailing list