summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-stress/llvm-stress.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-04-25 04:24:47 +0000
committerCraig Topper <craig.topper@gmail.com>2014-04-25 04:24:47 +0000
commite6cb63e471c56fa7e90916ec81da76a2604e388f (patch)
treed28cb6c8432d2e14d395d098272faa726a0cd01b /llvm/tools/llvm-stress/llvm-stress.cpp
parent409ac186bb7724c93d76db93b17ad6b1fdeea234 (diff)
downloadbcm5719-llvm-e6cb63e471c56fa7e90916ec81da76a2604e388f.tar.gz
bcm5719-llvm-e6cb63e471c56fa7e90916ec81da76a2604e388f.zip
[C++] Use 'nullptr'. Tools edition.
llvm-svn: 207176
Diffstat (limited to 'llvm/tools/llvm-stress/llvm-stress.cpp')
-rw-r--r--llvm/tools/llvm-stress/llvm-stress.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-stress/llvm-stress.cpp b/llvm/tools/llvm-stress/llvm-stress.cpp
index 5e42bb9fcbf..b7bcae7b73c 100644
--- a/llvm/tools/llvm-stress/llvm-stress.cpp
+++ b/llvm/tools/llvm-stress/llvm-stress.cpp
@@ -245,7 +245,7 @@ protected:
/// Pick a random scalar type.
Type *pickScalarType() {
- Type *t = 0;
+ Type *t = nullptr;
do {
switch (Ran->Rand() % 30) {
case 0: t = Type::getInt1Ty(Context); break;
@@ -271,7 +271,7 @@ protected:
case 29: if (GenX86MMX) t = Type::getX86_MMXTy(Context); break;
default: llvm_unreachable("Invalid scalar value");
}
- } while (t == 0);
+ } while (t == nullptr);
return t;
}
OpenPOWER on IntegriCloud