diff --git a/lib/RemoveLiftingArtifacts/MakeSegmentRefPass.cpp b/lib/RemoveLiftingArtifacts/MakeSegmentRefPass.cpp index 2982f895b..c89d4ce68 100644 --- a/lib/RemoveLiftingArtifacts/MakeSegmentRefPass.cpp +++ b/lib/RemoveLiftingArtifacts/MakeSegmentRefPass.cpp @@ -75,7 +75,8 @@ bool MakeSegmentRefPass::runOnFunction(Function &F) { if (BI->getCondition() != Op) continue; - if (ConstantInt *ConstOp = dyn_cast(skipCasts(Op))) { + ConstantInt *ConstOp = dyn_cast(skipCasts(Op)); + if (ConstOp != nullptr and ConstOp->getBitWidth() <= 64) { uint64_t Literal = ConstOp->getZExtValue(); if (auto Segment = findLiteralInSegments(*Model, Literal); Segment) {