From c763a4087f1d8fa4dbdfb9c8f30d545cdb66a0aa Mon Sep 17 00:00:00 2001 From: Julian Büning Date: Sat, 10 Oct 2020 15:13:06 +0200 Subject: Ref: implement operator bool() --- lib/Core/Executor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Core/Executor.cpp') diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index e3e33aa2..13c25076 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -3048,11 +3048,11 @@ void Executor::executeInstruction(ExecutionState &state, KInstruction *ki) { r = ExtractExpr::create(agg, rOffset, agg->getWidth() - rOffset); ref result; - if (!l.isNull() && !r.isNull()) + if (l && r) result = ConcatExpr::create(r, ConcatExpr::create(val, l)); - else if (!l.isNull()) + else if (l) result = ConcatExpr::create(val, l); - else if (!r.isNull()) + else if (r) result = ConcatExpr::create(r, val); else result = val; -- cgit 1.4.1