forked from OSchip/llvm-project
parent
d84a9a1249
commit
11de9a966a
|
@ -1740,9 +1740,11 @@ void CGDebugInfo::EmitStopPoint(CGBuilderTy &Builder) {
|
|||
// Don't bother if things are the same as last time.
|
||||
SourceManager &SM = CGM.getContext().getSourceManager();
|
||||
if (CurLoc == PrevLoc
|
||||
|| (SM.getInstantiationLineNumber(CurLoc) ==
|
||||
SM.getInstantiationLineNumber(PrevLoc)
|
||||
&& SM.isFromSameFile(CurLoc, PrevLoc)))
|
||||
|| ((SM.getInstantiationLineNumber(CurLoc)
|
||||
== SM.getInstantiationLineNumber(PrevLoc))
|
||||
&& (SM.getInstantiationColumnNumber(CurLoc)
|
||||
== SM.getInstantiationColumnNumber(PrevLoc))
|
||||
&& SM.isFromSameFile(CurLoc, PrevLoc)))
|
||||
// New Builder may not be in sync with CGDebugInfo.
|
||||
if (!Builder.getCurrentDebugLocation().isUnknown())
|
||||
return;
|
||||
|
|
|
@ -26,7 +26,7 @@ int main() {
|
|||
Array[i][j] = 0;
|
||||
test_indvars(Array[0], Array);
|
||||
|
||||
//CHECK: .loc 2 30 3
|
||||
//CHECK: .loc 2 30 8
|
||||
for (i=0; i < 100; i+=2)
|
||||
for (j=0; j < 200; j++)
|
||||
sum += Array[i][j];
|
||||
|
|
Loading…
Reference in New Issue