1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/lib/AsmParser
Mehdi Amini 62ba5df396 Fix auto-upgrade of TBAA tags in Bitcode Reader
If TBAA is on an intrinsic and it gets upgraded, it'll delete the call
instruction that we collected in a vector. Even if we were to use
WeakVH, it'll drop the TBAA and we'll hit the assert on the upgrade
path.

r263673 gave a shot to make sure the TBAA upgrade happens before
intrinsics upgrade, but failed to account for all cases.

Instead of collecting instructions in a vector, this patch makes it
just upgrade the TBAA on the fly, because metadata are always
already loaded at this point.

Differential Revision: https://reviews.llvm.org/D24533

llvm-svn: 281549
2016-09-14 22:29:59 +00:00
..
CMakeLists.txt
LLLexer.cpp [LLVM] Fix some Clang-tidy modernize-use-using and Include What You Use warnings 2016-08-18 17:56:27 +00:00
LLLexer.h
LLParser.cpp Fix auto-upgrade of TBAA tags in Bitcode Reader 2016-09-14 22:29:59 +00:00
LLParser.h IR: Introduce local_unnamed_addr attribute. 2016-06-14 21:01:22 +00:00
LLToken.h Add writeonly IR attribute 2016-07-04 08:01:29 +00:00
LLVMBuild.txt
Parser.cpp [AsmParser] Expose an API to parse a string starting with a type. 2016-03-08 00:37:07 +00:00