diff options
Diffstat (limited to 'lib/VMCore/ConstantFold.cpp')
| -rw-r--r-- | lib/VMCore/ConstantFold.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/lib/VMCore/ConstantFold.cpp b/lib/VMCore/ConstantFold.cpp index 194a6d4..47244a0 100644 --- a/lib/VMCore/ConstantFold.cpp +++ b/lib/VMCore/ConstantFold.cpp @@ -1818,7 +1818,7 @@ Constant *llvm::ConstantFoldCompareInstruction(unsigned short pred,    // Handle some degenerate cases first    if (isa<UndefValue>(C1) || isa<UndefValue>(C2)) -    return UndefValue::get(ResultTy); +    return ConstantInt::get(ResultTy, CmpInst::isTrueWhenEqual(pred));    // No compile-time operations on this type yet.    if (C1->getType()->isPPC_FP128Ty()) | 
