[PATCH] D39695: [IPO/LowerTypesTest] Skip blockaddress when replacing uses

Davide Italiano via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 6 13:30:19 PST 2017


davide created this revision.

Blockaddresses refer to the function itself, therefore replacing them would cause an assertion in doRAUW.
Fixes https://bugs.llvm.org/show_bug.cgi?id=35201
This was found when trying CFI on a proprietary kernel by Dmitry Mikulin.


https://reviews.llvm.org/D39695

Files:
  include/llvm/IR/Value.h
  lib/IR/Value.cpp
  lib/Transforms/IPO/LowerTypeTests.cpp
  test/Transforms/LowerTypeTests/blockaddress.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39695.121777.patch
Type: text/x-patch
Size: 4094 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171106/d50f111c/attachment.bin>


More information about the llvm-commits mailing list