Fix the debug build breakage that getDiscriminator is called by mistake.
llvm-svn: 253597
This commit is contained in:
parent
6c11c04db3
commit
014fb55711
|
@ -205,7 +205,8 @@ bool AddDiscriminators::runOnFunction(Function &F) {
|
|||
I.setDebugLoc(DILocation::get(Ctx, DIL->getLine(), DIL->getColumn(),
|
||||
NewScope, DIL->getInlinedAt()));
|
||||
DEBUG(dbgs() << DIL->getFilename() << ":" << DIL->getLine() << ":"
|
||||
<< DIL->getColumn() << ":" << NewScope->getDiscriminator()
|
||||
<< DIL->getColumn() << ":"
|
||||
<< dyn_cast<DILexicalBlockFile>(NewScope)->getDiscriminator()
|
||||
<< I << "\n");
|
||||
Changed = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue