diff options
author | Chris Lattner <sabre@nondot.org> | 2001-09-10 20:12:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-09-10 20:12:04 +0000 |
commit | e93cdce4c9d3cbc991f662bf81efa1904acbf023 (patch) | |
tree | 2dff5b1becce214bd49f12ed072a50b210fabcd2 /lib/ExecutionEngine/Interpreter/Execution.cpp | |
parent | ca24d381e713227094fbc0223d22b3a6e99541ce (diff) |
Use the correct style casts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/Execution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp index 0b0cf0a410..0b017ad574 100644 --- a/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -351,7 +351,7 @@ void Interpreter::executeAllocInst(AllocationInst *I, ExecutionContext &SF) { unsigned NumElements = 1; if (I->getNumOperands()) { // Allocating a unsized array type? - assert(Ty->isArrayType() && Ty->isArrayType()->isUnsized() && + assert(Ty->isArrayType() && Ty->castArrayType()->isUnsized() && "Allocation inst with size operand for !unsized array type???"); Ty = ((const ArrayType*)Ty)->getElementType(); // Get the actual type... |