[llvm] r235468 - Fix stale comment that mentioned 0 instead of nullptr. NFC.

David Blaikie dblaikie at gmail.com
Tue Apr 21 20:09:26 PDT 2015


On Tue, Apr 21, 2015 at 7:59 PM, Craig Topper <craig.topper at gmail.com> wrote:
> Author: ctopper
> Date: Tue Apr 21 21:59:03 2015
> New Revision: 235468
>
> URL: http://llvm.org/viewvc/llvm-project?rev=235468&view=rev
> Log:
> Fix stale comment that mentioned 0 instead of nullptr. NFC.
>
> Modified:
>     llvm/trunk/lib/TableGen/Record.cpp
>
> Modified: llvm/trunk/lib/TableGen/Record.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TableGen/Record.cpp?rev=235468&r1=235467&r2=235468&view=diff
> ==============================================================================
> --- llvm/trunk/lib/TableGen/Record.cpp (original)
> +++ llvm/trunk/lib/TableGen/Record.cpp Tue Apr 21 21:59:03 2015
> @@ -385,7 +385,7 @@ bool RecordRecTy::baseClassOf(const RecT
>  }
>
>  /// resolveTypes - Find a common type that T1 and T2 convert to.
> -/// Return 0 if no such type exists.
> +/// Return nullptr if no such type exists.

Should probably just be "null" (nullptr is just one null literal - an
implementation detail, if you will).

>  ///
>  RecTy *llvm::resolveTypes(RecTy *T1, RecTy *T2) {
>    if (T1->typeIsConvertibleTo(T2))
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



More information about the llvm-commits mailing list