projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
766be1d
)
Fix bug in previous checkin
author
Chris Lattner
<sabre@nondot.org>
Sun, 2 Nov 2003 06:54:48 +0000
(06:54 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 2 Nov 2003 06:54:48 +0000
(06:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9656
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index d5da0b3b54ac03d16cde1de5a0306f1394801117..bbdfda3f76bae2648546d11b3917730ab8c974c7 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-1543,7
+1543,7
@@
Instruction *InstCombiner::visitCastInst(CastInst &CI) {
// size, rewrite the allocation instruction to allocate the "right" type.
//
if (AllocationInst *AI = dyn_cast<AllocationInst>(Src))
- if (AI->hasOneUse())
+ if (AI->hasOneUse()
&& !AI->isArrayAllocation()
)
if (const PointerType *PTy = dyn_cast<PointerType>(CI.getType())) {
// Get the type really allocated and the type casted to...
const Type *AllocElTy = AI->getAllocatedType();