about summary refs log tree commit diff
path: root/instrumentation/cmplog-instructions-pass.cc
diff options
context:
space:
mode:
Diffstat (limited to 'instrumentation/cmplog-instructions-pass.cc')
-rw-r--r--instrumentation/cmplog-instructions-pass.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/instrumentation/cmplog-instructions-pass.cc b/instrumentation/cmplog-instructions-pass.cc
index 80af05f0..a7b7aac8 100644
--- a/instrumentation/cmplog-instructions-pass.cc
+++ b/instrumentation/cmplog-instructions-pass.cc
@@ -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