Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(430)

Issue 104054: [PATCH] Use AssertingVH for the GlobalValue maps (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 9 months ago by Jeffrey Yasskin
Modified:
14 years, 8 months ago
Reviewers:
llvm-commits
Base URL:
https://llvm.org/svn/llvm-project/llvm/trunk/
Visibility:
Public.

Description

To catch bugs like the one fixed in http://llvm.org/viewvc/llvm-project?view=rev&revision=78127, I'm changing the ExecutionEngine's global mappings to hold AssertingVH<const GlobalValue>. That way, if unregistering a mapping fails to actually unregister it, we'll get an assert. Running the jit nightly tests doesn't uncover any actual instances of the problem. This also uncovered the fact that AssertingVH<const X> didn't work, so I fixed that too.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -19 lines) Patch
M include/llvm/ExecutionEngine/ExecutionEngine.h View 1 chunk +5 lines, -4 lines 0 comments Download
M include/llvm/Support/ValueHandle.h View 2 chunks +7 lines, -2 lines 0 comments Download
M lib/ExecutionEngine/ExecutionEngine.cpp View 7 chunks +18 lines, -13 lines 0 comments Download
M unittests/Support/ValueHandleTest.cpp View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 1
Jeffrey Yasskin
14 years, 9 months ago (2009-08-06 18:04:32 UTC) #1

          
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b