Simplify cfg inserts a call to trap when unreachable code is detected. Assign DebugLo...
authorDevang Patel <dpatel@apple.com>
Wed, 27 Apr 2011 17:59:27 +0000 (17:59 +0000)
committerDevang Patel <dpatel@apple.com>
Wed, 27 Apr 2011 17:59:27 +0000 (17:59 +0000)
commit7878f37cf0dc76689c550727d236ee942b66343f
treecbbc14fa132d9bbee55830006b8f5655fe10d638
parent93e110ba344ddc901dfb2af61d9c21002d8d3080
Simplify cfg inserts a call to trap when unreachable code is detected. Assign DebugLoc to this new trap instruction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130315 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SimplifyCFGPass.cpp
test/Transforms/SimplifyCFG/trap-debugloc.ll [new file with mode: 0644]