diff options
author | Devang Patel <dpatel@apple.com> | 2010-06-04 22:27:30 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-06-04 22:27:30 +0000 |
commit | 93031ac032219c2200de2df1c73e594a0496ecef (patch) | |
tree | b7e38a9638c543eff331f03ffa3a18697fd1dd8c /lib | |
parent | 7c21f747c79415934cc5216c09d239427252ab33 (diff) | |
download | external_llvm-93031ac032219c2200de2df1c73e594a0496ecef.zip external_llvm-93031ac032219c2200de2df1c73e594a0496ecef.tar.gz external_llvm-93031ac032219c2200de2df1c73e594a0496ecef.tar.bz2 |
Copy location info for current function argument from dbg.declare if respective store instruction does not have any location info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105490 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Utils/PromoteMemoryToRegister.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp index 87d0a10..02eae5b 100644 --- a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp +++ b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp @@ -897,10 +897,8 @@ void PromoteMem2Reg::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI, // Propagate any debug metadata from the store onto the dbg.value. if (MDNode *SIMD = SI->getMetadata("dbg")) DbgVal->setMetadata("dbg", SIMD); - // Otherwise propagate debug metadata from dbg.declare for inlined fn args. - else if (!DISubprogram(DIVar.getContext()). - describes(DDI->getParent()->getParent())) - if (MDNode *MD = DDI->getMetadata("dbg")) + // Otherwise propagate debug metadata from dbg.declare. + else if (MDNode *MD = DDI->getMetadata("dbg")) DbgVal->setMetadata("dbg", MD); } |