diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-02-18 17:22:58 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-02-18 17:22:58 +0000 |
commit | ef4c80e07baf02dd2a8f08db49c5634a06d3ca1e (patch) | |
tree | feba556fcdc7f9ccd182ed4fbe3206947cd5c625 /unittests/ADT/HashingTest.cpp | |
parent | 31d157ae1ac2cd9c787dc3c1d28e64c682803844 (diff) |
Don't skip debug instructions when looking for the insertion point of
the cast. If we do, we can end up with
inst1
--------------- < Insertion point
dbg inst
new inst
instead of the desired
inst1
new inst
--------------- < Insertion point
dbg inst
Another option would be for InsertNoopCastOfTo (or its callers) to move the
insertion point and we would end up with
inst1
dbg inst
new inst
--------------- < Insertion point
but that complicates the callers. This fixes PR12018 (and firefox's build).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150884 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ADT/HashingTest.cpp')
0 files changed, 0 insertions, 0 deletions