]> granicus.if.org Git - clang/commit
[NFC] Change odd cast-through-unknown behavior to an Optional
authorErich Keane <erich.keane@intel.com>
Wed, 7 Feb 2018 00:37:19 +0000 (00:37 +0000)
committerErich Keane <erich.keane@intel.com>
Wed, 7 Feb 2018 00:37:19 +0000 (00:37 +0000)
commitc1b9c07504bdb033fb7b44a03d5b6f4b01deb642
treef71e0ec7fe2231ab37fcd7aa1d40023c28c06954
parentfce759b49d29ee0b5e3a3c99937a74f4fdfd1593
[NFC] Change odd cast-through-unknown behavior to an Optional

This bit of code in the driver uses '~0U' as a sentinel value.
The result is an odd mishmash of casts just to work.  This replaces
it with an optional,  which is a little less crazy looking.
--ehis line, and those below, will be ignored--

M    lib/Driver/Driver.cpp

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@324433 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Driver.cpp