projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffe3b43
)
Fix the debug build breakage that getDiscriminator is called by mistake.
author
Dehao Chen
<dehao@google.com>
Thu, 19 Nov 2015 20:29:27 +0000
(20:29 +0000)
committer
Dehao Chen
<dehao@google.com>
Thu, 19 Nov 2015 20:29:27 +0000
(20:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253597
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/AddDiscriminators.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/AddDiscriminators.cpp
b/lib/Transforms/Utils/AddDiscriminators.cpp
index ed9ff5a96c43f27629d1bd5f40a8d8c029eaa57d..0262358fa3d570da84b1ff5603069e156a68be01 100644
(file)
--- a/
lib/Transforms/Utils/AddDiscriminators.cpp
+++ b/
lib/Transforms/Utils/AddDiscriminators.cpp
@@
-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;
}