cmplog: Fix compilation for LLVM 12.0.0 (getFixedValue was not available here)

This commit is contained in:
hexcoder-
2021-11-19 19:44:14 +01:00
parent 7777045c09
commit 5c1b2412a5

View File

@ -339,7 +339,7 @@ bool CmpLogInstructions::hookInstrs(Module &M) {
}
#if LLVM_MAJOR > 11
vector_cnt = tt->getElementCount().getFixedValue();
vector_cnt = tt->getElementCount().getKnownMinValue();
ty0 = tt->getElementType();
#endif
@ -380,7 +380,7 @@ bool CmpLogInstructions::hookInstrs(Module &M) {
}
vector_cnt = tt->getElementCount().getFixedValue();
vector_cnt = tt->getElementCount().getKnownMinValue();
ty1 = ty0 = tt->getElementType();
#endif