Don't generate discriminators for calls to debug intrinsics
authorPavel Labath <labath@google.com>
Mon, 16 Nov 2015 10:40:38 +0000 (10:40 +0000)
committerPavel Labath <labath@google.com>
Mon, 16 Nov 2015 10:40:38 +0000 (10:40 +0000)
commit168146e84b6b96d17093807189d069a4a04e8d06
tree0d698e292fa47962b0a0aa297d22e146561652c9
parentf88d08f7c5c8305929259b283103419d3954a126
Don't generate discriminators for calls to debug intrinsics

Summary:
This fails a check in Verifier.cpp, which checks for location matches between the declared
variable and the !dbg attachments.

Reviewers: dnovillo, dblaikie, danielcdh

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D14657

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253194 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/AddDiscriminators.cpp
test/Transforms/AddDiscriminators/dbg-declare-discriminator.ll [new file with mode: 0644]