mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
[C++] Use 'nullptr'. Tools edition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207176 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -148,7 +148,7 @@ int main(int argc, char **argv) {
|
||||
std::string ErrorInfo;
|
||||
const void *Code = CodeGen.compile(&len, DisableOpt, DisableInline,
|
||||
DisableGVNLoadPRE, ErrorInfo);
|
||||
if (Code == NULL) {
|
||||
if (!Code) {
|
||||
errs() << argv[0]
|
||||
<< ": error compiling the code: " << ErrorInfo << "\n";
|
||||
return 1;
|
||||
@ -165,7 +165,7 @@ int main(int argc, char **argv) {
|
||||
FileStream.write(reinterpret_cast<const char *>(Code), len);
|
||||
} else {
|
||||
std::string ErrorInfo;
|
||||
const char *OutputName = NULL;
|
||||
const char *OutputName = nullptr;
|
||||
if (!CodeGen.compile_to_file(&OutputName, DisableOpt, DisableInline,
|
||||
DisableGVNLoadPRE, ErrorInfo)) {
|
||||
errs() << argv[0]
|
||||
|
Reference in New Issue
Block a user