diff options
| author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2017-04-26 16:37:05 +0000 |
|---|---|---|
| committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2017-04-26 16:37:05 +0000 |
| commit | 2cbeb00f3842042accf64fcfc58be6ea3eba42fc (patch) | |
| tree | c5a2da1f4f0a3ad6e499a9e825380f854601ad32 /llvm/lib/Bitcode/Reader | |
| parent | 9eed0bee3dcda9978ffad6df3e4af1db7d3ffab0 (diff) | |
| download | bcm5719-llvm-2cbeb00f3842042accf64fcfc58be6ea3eba42fc.tar.gz bcm5719-llvm-2cbeb00f3842042accf64fcfc58be6ea3eba42fc.zip | |
Reverts commit r301424, r301425 and r301426
Commits were:
"Use WeakVH instead of WeakTrackingVH in AliasSetTracker's UnkownInsts"
"Add a new WeakVH value handle; NFC"
"Rename WeakVH to WeakTrackingVH; NFC"
The changes assumed pointers are 8 byte aligned on all architectures.
llvm-svn: 301429
Diffstat (limited to 'llvm/lib/Bitcode/Reader')
| -rw-r--r-- | llvm/lib/Bitcode/Reader/ValueList.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Bitcode/Reader/ValueList.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/ValueList.cpp b/llvm/lib/Bitcode/Reader/ValueList.cpp index d1a2a11bbfa..7152a51cea6 100644 --- a/llvm/lib/Bitcode/Reader/ValueList.cpp +++ b/llvm/lib/Bitcode/Reader/ValueList.cpp @@ -58,7 +58,7 @@ void BitcodeReaderValueList::assignValue(Value *V, unsigned Idx) { if (Idx >= size()) resize(Idx + 1); - WeakTrackingVH &OldV = ValuePtrs[Idx]; + WeakVH &OldV = ValuePtrs[Idx]; if (!OldV) { OldV = V; return; diff --git a/llvm/lib/Bitcode/Reader/ValueList.h b/llvm/lib/Bitcode/Reader/ValueList.h index 72775a3cf3b..3119d7735e2 100644 --- a/llvm/lib/Bitcode/Reader/ValueList.h +++ b/llvm/lib/Bitcode/Reader/ValueList.h @@ -20,7 +20,7 @@ namespace llvm { class Constant; class BitcodeReaderValueList { - std::vector<WeakTrackingVH> ValuePtrs; + std::vector<WeakVH> ValuePtrs; /// As we resolve forward-referenced constants, we add information about them /// to this vector. This allows us to resolve them in bulk instead of |

