diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-05-21 05:09:00 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-05-21 05:09:00 +0000 |
commit | d1008e5c93536222903523b70245ec66876bbad5 (patch) | |
tree | 497a27f59709ab02c2dedda0150112ece7b52023 /lib/CodeGen/CGOpenCLRuntime.cpp | |
parent | 7a1672c5c23b8a5707282062b916ca6c447da7a1 (diff) |
[C++11] Use 'nullptr'. CodeGen edition.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209272 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGOpenCLRuntime.cpp')
-rw-r--r-- | lib/CodeGen/CGOpenCLRuntime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGOpenCLRuntime.cpp b/lib/CodeGen/CGOpenCLRuntime.cpp index 6e1a3c975d..079ef7234d 100644 --- a/lib/CodeGen/CGOpenCLRuntime.cpp +++ b/lib/CodeGen/CGOpenCLRuntime.cpp @@ -39,7 +39,7 @@ llvm::Type *CGOpenCLRuntime::convertOpenCLSpecificType(const Type *T) { switch (cast<BuiltinType>(T)->getKind()) { default: llvm_unreachable("Unexpected opencl builtin type!"); - return 0; + return nullptr; case BuiltinType::OCLImage1d: return llvm::PointerType::get(llvm::StructType::create( Ctx, "opencl.image1d_t"), ImgAddrSpc); |