summaryrefslogtreecommitdiffstats
path: root/libclc
diff options
context:
space:
mode:
authorJeroen Ketema <j.ketema@imperial.ac.uk>2015-06-27 12:35:54 +0000
committerJeroen Ketema <j.ketema@imperial.ac.uk>2015-06-27 12:35:54 +0000
commit2697d2a43b9eb23c741a4aced40005e9d1608fa0 (patch)
tree569471a2c04fd585d551bdd014f2ab2b94f2eb76 /libclc
parentb744e7210be1651dbbca0ad8fb5558d596dcd864 (diff)
downloadbcm5719-llvm-2697d2a43b9eb23c741a4aced40005e9d1608fa0.tar.gz
bcm5719-llvm-2697d2a43b9eb23c741a4aced40005e9d1608fa0.zip
Properly initialize Module pointer
llvm-svn: 240881
Diffstat (limited to 'libclc')
-rw-r--r--libclc/utils/prepare-builtins.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libclc/utils/prepare-builtins.cpp b/libclc/utils/prepare-builtins.cpp
index 42bce7570ef..2aefcc9248a 100644
--- a/libclc/utils/prepare-builtins.cpp
+++ b/libclc/utils/prepare-builtins.cpp
@@ -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 =
OpenPOWER on IntegriCloud