Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Issue 1023673007: Subzero: Fix inappropriate use of nullptr. (Closed)

Created:
5 years, 9 months ago by Jim Stichnoth
Modified:
5 years, 9 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Subzero: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -4 lines) Patch
M src/IceTargetLoweringX8632.cpp View 2 chunks +6 lines, -4 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-atomic-intrinsics.ll View 1 5 chunks +45 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Jim Stichnoth
5 years, 9 months ago (2015-03-23 13:56:45 UTC) #2
jvoung (off chromium)
LGTM -- could you add a lit check too?
5 years, 9 months ago (2015-03-23 16:27:04 UTC) #3
Jim Stichnoth
On 2015/03/23 16:27:04, jvoung wrote: > LGTM -- could you add a lit check too? ...
5 years, 9 months ago (2015-03-23 17:29:30 UTC) #4
Jim Stichnoth
5 years, 9 months ago (2015-03-23 17:30:02 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
27c56bf650197a019aede197c136a0fd9bb7692c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698