Merge pull request #850 from Vsevolod-Livinskij/fix_216239
Fix for llvm revision 216239
This commit is contained in:
6
ctx.cpp
6
ctx.cpp
@@ -1546,14 +1546,16 @@ FunctionEmitContext::StartScope() {
|
|||||||
llvm::DILexicalBlock lexicalBlock =
|
llvm::DILexicalBlock lexicalBlock =
|
||||||
m->diBuilder->createLexicalBlock(parentScope, diFile,
|
m->diBuilder->createLexicalBlock(parentScope, diFile,
|
||||||
currentPos.first_line,
|
currentPos.first_line,
|
||||||
#if !defined(LLVM_3_2) && !defined(LLVM_3_3) && !defined(LLVM_3_4) // LLVM 3.5+
|
#if defined(LLVM_3_5)
|
||||||
// Revision 202736 in LLVM adds support of DWARF discriminator
|
// Revision 202736 in LLVM adds support of DWARF discriminator
|
||||||
// to the last argument and revision 202737 in clang adds 0
|
// to the last argument and revision 202737 in clang adds 0
|
||||||
// for the last argument by default.
|
// for the last argument by default.
|
||||||
currentPos.first_column, 0);
|
currentPos.first_column, 0);
|
||||||
#else
|
#else
|
||||||
|
// Revision 216239 in LLVM removes support of DWARF discriminator
|
||||||
|
// as the last argument
|
||||||
currentPos.first_column);
|
currentPos.first_column);
|
||||||
#endif
|
#endif // LLVM 3.2, 3.3, 3.4 and 3.6+
|
||||||
AssertPos(currentPos, lexicalBlock.Verify());
|
AssertPos(currentPos, lexicalBlock.Verify());
|
||||||
debugScopes.push_back(lexicalBlock);
|
debugScopes.push_back(lexicalBlock);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user