diff options
author | John Criswell <criswell@uiuc.edu> | 2003-07-08 14:52:09 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2003-07-08 14:52:09 +0000 |
commit | cf6d7b0353131570d9b1f159842a36f9ccf95d0c (patch) | |
tree | 4bca9ea9d6aa5df02e998ee32d8d5d286d4d09c4 /lib/Target/CBackend/Writer.cpp | |
parent | 48aa8242799b639526b8b696260045be0c0c0139 (diff) |
Removed size_t from the parameter list of the malloc() prototype in generated C
code. This prevents a compiler warning on Sparc that causes the tests to fail.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7125 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/Writer.cpp')
-rw-r--r-- | lib/Target/CBackend/Writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index d38c6c7e5e..71e0c3c9fb 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -676,7 +676,7 @@ void CWriter::printModule(Module *M) { // Print Malloc prototype if needed if (needsMalloc){ Out << "\n/* Malloc to make sun happy */\n"; - Out << "extern void * malloc(size_t);\n\n"; + Out << "extern void * malloc();\n\n"; } // Output the global variable declarations |