DescriptionSubzero: Fix inappropriate use of nullptr.
When lowering of a couple of atomic intrinsics down to a loop structure, a FakeUse on the memory address's base variable is created. However, if the memory address is a global constant, there is no base variable. So check for that and don't create a FakeUse if there is none.
BUG= none
TEST=synchronization_sync (scons test)
R=jvoung@chromium.org
Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=27c56bf650197a019aede197c136a0fd9bb7692c
Patch Set 1 #Patch Set 2 : Add some lit tests #
Messages
Total messages: 5 (1 generated)
|