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 = _______________________________________________ cfe-commits mailing list cfe-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits