Revision: 127041
Author:   dpatel
Date:     2007-05-08 11:09:27 -0700 (Tue, 08 May 2007)

Log Message:
-----------
Fix PR1400
Test case
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070507/049420.html

Modified Paths:
--------------
    apple-local/branches/llvm/gcc/llvm-convert.cpp

Modified: apple-local/branches/llvm/gcc/llvm-convert.cpp
===================================================================
--- apple-local/branches/llvm/gcc/llvm-convert.cpp      2007-05-08 10:44:37 UTC 
(rev 127040)
+++ apple-local/branches/llvm/gcc/llvm-convert.cpp      2007-05-08 18:09:27 UTC 
(rev 127041)
@@ -203,7 +203,7 @@
     else
       // Non constant values, e.g. arguments, are not at global scope.
       // When PCH is read, only global scope values are used.
-      ValuesForPCH.push_back(NULL);
+      ValuesForPCH.push_back(Constant::getNullValue(Type::Int32Ty));
   }
 
   // Create string table.


_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to