mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00:00
[C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206243 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -73,7 +73,7 @@ void LLVMInitializeAnalysis(LLVMPassRegistryRef R) {
|
||||
|
||||
LLVMBool LLVMVerifyModule(LLVMModuleRef M, LLVMVerifierFailureAction Action,
|
||||
char **OutMessages) {
|
||||
raw_ostream *DebugOS = Action != LLVMReturnStatusAction ? &errs() : 0;
|
||||
raw_ostream *DebugOS = Action != LLVMReturnStatusAction ? &errs() : nullptr;
|
||||
std::string Messages;
|
||||
raw_string_ostream MsgsOS(Messages);
|
||||
|
||||
@@ -94,7 +94,8 @@ LLVMBool LLVMVerifyModule(LLVMModuleRef M, LLVMVerifierFailureAction Action,
|
||||
|
||||
LLVMBool LLVMVerifyFunction(LLVMValueRef Fn, LLVMVerifierFailureAction Action) {
|
||||
LLVMBool Result = verifyFunction(
|
||||
*unwrap<Function>(Fn), Action != LLVMReturnStatusAction ? &errs() : 0);
|
||||
*unwrap<Function>(Fn), Action != LLVMReturnStatusAction ? &errs()
|
||||
: nullptr);
|
||||
|
||||
if (Action == LLVMAbortProcessAction && Result)
|
||||
report_fatal_error("Broken function found, compilation aborted!");
|
||||
|
Reference in New Issue
Block a user