[GlobalISel]: Fix a bug where we could dereference None
authorAditya Nandakumar <aditya_nandakumar@apple.com>
Mon, 9 Sep 2019 22:51:41 +0000 (22:51 +0000)
committerAditya Nandakumar <aditya_nandakumar@apple.com>
Mon, 9 Sep 2019 22:51:41 +0000 (22:51 +0000)
commit5112b71126a133b744b11b50d60fcb89d005513d
treec37ab2cdd30240d8c0b4806044ea4ec6661e241e
parent2ca7370183a104b7769202032e9d5a41c04ed070
[GlobalISel]: Fix a bug where we could dereference None

getConstantVRegVal returns None when dealing with constants > 64 bits.
Don't assume we always have a value in GISelKnownBits.

llvm-svn: 371465
llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp