diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-06-08 22:29:17 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-06-08 22:29:17 +0000 |
commit | b177041dfaaabbbb8f97e256572125c42d35bbff (patch) | |
tree | 2fa3317226283039c40bb5e46c56ab2a2d4952bc /utils | |
parent | d8fdbb2ea84afd9be849e4237634ec09879a2d36 (diff) | |
download | llvm-b177041dfaaabbbb8f97e256572125c42d35bbff.tar.gz llvm-b177041dfaaabbbb8f97e256572125c42d35bbff.tar.bz2 llvm-b177041dfaaabbbb8f97e256572125c42d35bbff.tar.xz |
[C++11] Use 'nullptr'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210442 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/FileCheck/FileCheck.cpp | 2 | ||||
-rw-r--r-- | utils/PerfectShuffle/PerfectShuffle.cpp | 4 | ||||
-rw-r--r-- | utils/not/not.cpp | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/utils/FileCheck/FileCheck.cpp b/utils/FileCheck/FileCheck.cpp index a1243774fe..74c708236d 100644 --- a/utils/FileCheck/FileCheck.cpp +++ b/utils/FileCheck/FileCheck.cpp @@ -1043,7 +1043,7 @@ bool CheckString::CheckNext(const SourceMgr &SM, StringRef Buffer) const { SMLoc::getFromPointer(Buffer.data())))->getBufferStart() && "CHECK-NEXT can't be the first check in a file"); - const char *FirstNewLine = 0; + const char *FirstNewLine = nullptr; unsigned NumNewLines = CountNumNewlinesBetween(Buffer, FirstNewLine); if (NumNewLines == 0) { diff --git a/utils/PerfectShuffle/PerfectShuffle.cpp b/utils/PerfectShuffle/PerfectShuffle.cpp index d39414eede..f80d885631 100644 --- a/utils/PerfectShuffle/PerfectShuffle.cpp +++ b/utils/PerfectShuffle/PerfectShuffle.cpp @@ -219,10 +219,10 @@ static void EvaluateOps(unsigned short Elt, unsigned short Vals[], int main() { // Seed the table with accesses to the LHS and RHS. ShufTab[0x0123].Cost = 0; - ShufTab[0x0123].Op = 0; + ShufTab[0x0123].Op = nullptr; ShufTab[0x0123].Arg0 = 0x0123; ShufTab[0x4567].Cost = 0; - ShufTab[0x4567].Op = 0; + ShufTab[0x4567].Op = nullptr; ShufTab[0x4567].Arg0 = 0x4567; // Seed the first-level of shuffles, shuffles whose inputs are the input to diff --git a/utils/not/not.cpp b/utils/not/not.cpp index ebd16189c9..546f989d7f 100644 --- a/utils/not/not.cpp +++ b/utils/not/not.cpp @@ -30,7 +30,8 @@ int main(int argc, const char **argv) { std::string Program = sys::FindProgramByName(argv[0]); std::string ErrMsg; - int Result = sys::ExecuteAndWait(Program, argv, 0, 0, 0, 0, &ErrMsg); + int Result = sys::ExecuteAndWait(Program, argv, nullptr, nullptr, 0, 0, + &ErrMsg); if (Result < 0) { errs() << "Error: " << ErrMsg << "\n"; if (ExpectCrash) |