[llvm-commits] [dragonegg] r96946 - /dragonegg/trunk/llvm-debug.cpp
Duncan Sands
baldrick at free.fr
Tue Feb 23 07:06:52 PST 2010
Author: baldrick
Date: Tue Feb 23 09:06:52 2010
New Revision: 96946
URL: http://llvm.org/viewvc/llvm-project?rev=96946&view=rev
Log:
This is not a pointer, it's a character. Noticed by recent gcc.
Modified:
dragonegg/trunk/llvm-debug.cpp
Modified: dragonegg/trunk/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-debug.cpp?rev=96946&r1=96945&r2=96946&view=diff
==============================================================================
--- dragonegg/trunk/llvm-debug.cpp (original)
+++ dragonegg/trunk/llvm-debug.cpp Tue Feb 23 09:06:52 2010
@@ -242,7 +242,7 @@
// copy first.
char *StrPtr = FunctionNames.Allocate<char>(FnName.size() + 1);
strncpy(StrPtr, FnName.data(), FnName.size());
- StrPtr[FnName.size()] = NULL;
+ StrPtr[FnName.size()] = 0;
return StringRef(StrPtr);
}
More information about the llvm-commits
mailing list