mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-30 00:24:00 +00:00
Fix PR215: [bcwriter] Problem compactifying ConstantPointerRefs
Have I ever mentioned how much I _hate_ constantpointerrefs? llvm-svn: 11212
This commit is contained in:
parent
58ca173834
commit
9523c4de75
@ -381,6 +381,8 @@ static inline bool hasNullValue(unsigned TyID) {
|
||||
/// getOrCreateCompactionTableSlot - This method is used to build up the initial
|
||||
/// approximation of the compaction table.
|
||||
unsigned SlotCalculator::getOrCreateCompactionTableSlot(const Value *V) {
|
||||
if (const ConstantPointerRef *CPR = dyn_cast<ConstantPointerRef>(V))
|
||||
V = CPR->getValue();
|
||||
std::map<const Value*, unsigned>::iterator I =
|
||||
CompactionNodeMap.lower_bound(V);
|
||||
if (I != CompactionNodeMap.end() && I->first == V)
|
||||
|
Loading…
x
Reference in New Issue
Block a user