Fix for LLVM trunk

This commit is contained in:
Andrey Guskov
2015-04-15 16:31:23 +03:00
parent f73091f391
commit 824e47ece7
3 changed files with 36 additions and 32 deletions

View File

@@ -1685,10 +1685,10 @@ FunctionEmitContext::StartScope() {
#endif // LLVM 3.2, 3.3, 3.4 and 3.6+
#if defined(LLVM_3_2) || defined(LLVM_3_3) || defined(LLVM_3_4) || defined(LLVM_3_5) || defined(LLVM_3_6)
AssertPos(currentPos, lexicalBlock.Verify());
#else // LLVM 3.7+
//comming soon
#endif
debugScopes.push_back(lexicalBlock);
#else // LLVM 3.7+
debugScopes.push_back(llvm::cast<llvm::MDLexicalBlockBase>(lexicalBlock));
#endif
}
}