From 3cb7319ccdb98dcc6b023dbead603a4450ac4541 Mon Sep 17 00:00:00 2001 From: vanhauser-thc Date: Thu, 16 Dec 2021 10:41:33 +0100 Subject: fix for older llvm --- instrumentation/cmplog-instructions-pass.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/instrumentation/cmplog-instructions-pass.cc b/instrumentation/cmplog-instructions-pass.cc index 6656bf71..a2083a33 100644 --- a/instrumentation/cmplog-instructions-pass.cc +++ b/instrumentation/cmplog-instructions-pass.cc @@ -478,6 +478,7 @@ bool CmpLogInstructions::hookInstrs(Module &M) { */ if (is_fp) { +/* ConstantFP *i0 = dyn_cast(op0); ConstantFP *i1 = dyn_cast(op1); // BUG FIXME TODO: this is null ... but why? @@ -497,6 +498,7 @@ bool CmpLogInstructions::hookInstrs(Module &M) { last_val1 = cur_val; } +*/ } else { -- cgit 1.4.1