about summary refs log tree commit diff
path: root/instrumentation/SanitizerCoverageLTO.so.cc
diff options
context:
space:
mode:
Diffstat (limited to 'instrumentation/SanitizerCoverageLTO.so.cc')
-rw-r--r--instrumentation/SanitizerCoverageLTO.so.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/instrumentation/SanitizerCoverageLTO.so.cc b/instrumentation/SanitizerCoverageLTO.so.cc
index b3a6ba45..fbbe24a2 100644
--- a/instrumentation/SanitizerCoverageLTO.so.cc
+++ b/instrumentation/SanitizerCoverageLTO.so.cc
@@ -1313,7 +1313,10 @@ void ModuleSanitizerCoverage::instrumentFunction(
           result = IRB.CreateSelect(condition, val1, val2);
           inst += 2;
 
-        } else if (t->getTypeID() == llvm::Type::FixedVectorTyID) {
+        }
+
+#if LLVM_VERSION_MAJOR > 13
+        else if (t->getTypeID() == llvm::Type::FixedVectorTyID) {
 
           FixedVectorType *tt = dyn_cast<FixedVectorType>(t);
           if (tt) {
@@ -1355,7 +1358,10 @@ void ModuleSanitizerCoverage::instrumentFunction(
 
           }
 
-        } else {
+        } else
+
+#endif
+        {
 
           unhandled++;
           continue;