[llvm] r253597 - Fix the debug build breakage that getDiscriminator is called by mistake.
Dehao Chen via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 19 12:29:27 PST 2015
Author: dehao
Date: Thu Nov 19 14:29:27 2015
New Revision: 253597
URL: http://llvm.org/viewvc/llvm-project?rev=253597&view=rev
Log:
Fix the debug build breakage that getDiscriminator is called by mistake.
Modified:
llvm/trunk/lib/Transforms/Utils/AddDiscriminators.cpp
Modified: llvm/trunk/lib/Transforms/Utils/AddDiscriminators.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/AddDiscriminators.cpp?rev=253597&r1=253596&r2=253597&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/AddDiscriminators.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/AddDiscriminators.cpp Thu Nov 19 14:29:27 2015
@@ -205,7 +205,8 @@ bool AddDiscriminators::runOnFunction(Fu
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;
}
More information about the llvm-commits
mailing list