diff --git a/lib/Backend/GlobOpt.cpp b/lib/Backend/GlobOpt.cpp index 6a6445d1a0c..1e06f32e365 100644 --- a/lib/Backend/GlobOpt.cpp +++ b/lib/Backend/GlobOpt.cpp @@ -6791,7 +6791,7 @@ GlobOpt::CanProveConditionalBranch(IR::Instr *instr, Value *src1Val, Value *src2 { return false; } - *result = src1ValueInfo->IsObject(); + *result = !src1ValueInfo->IsPrimitive(); break; } default: