diff options
author | Davide Italiano <davide@freebsd.org> | 2018-09-17 18:14:38 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2018-09-17 18:14:38 +0000 |
commit | e5f105898122b432d8fab86f55729b4f107f7bca (patch) | |
tree | c3caac79d36215f455cad28a63e29f907fbb47c2 /lldb/source | |
parent | 905cf67c93c8ee0f727ae278461654d0533bc38f (diff) |
Revert "[IRInterpreter] Minor cleanups, add comments. NFCI."
This breaks buildbots.
Diffstat (limited to 'lldb/source')
-rw-r--r-- | lldb/source/Expression/IRInterpreter.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lldb/source/Expression/IRInterpreter.cpp b/lldb/source/Expression/IRInterpreter.cpp index ac1c40122ee..2c08d098b4d 100644 --- a/lldb/source/Expression/IRInterpreter.cpp +++ b/lldb/source/Expression/IRInterpreter.cpp @@ -601,13 +601,17 @@ bool IRInterpreter::CanInterpret(llvm::Module &module, llvm::Function &function, Value *operand = ii->getOperand(oi); Type *operand_type = operand->getType(); - // Vectors are currently unsupported, give up. - if (operand_type->getTypeID() == Type::VectorTyID) + switch (operand_type->getTypeID()) { + default: + break; + case Type::VectorTyID: { if (log) log->Printf("Unsupported operand type: %s", PrintType(operand_type).c_str()); error.SetErrorString(unsupported_operand_error); return false; + } + } // The IR interpreter currently doesn't know about // 128-bit integers. As they're not that frequent, @@ -621,7 +625,7 @@ bool IRInterpreter::CanInterpret(llvm::Module &module, llvm::Function &function, return false; } - if (auto *constant = llvm::dyn_cast<Constant>(operand)) { + if (Constant *constant = llvm::dyn_cast<Constant>(operand)) { if (!CanResolveConstant(constant)) { if (log) log->Printf("Unsupported constant: %s", |