summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorManuel Jacob <me@manueljacob.de>2014-07-16 01:34:21 +0000
committerManuel Jacob <me@manueljacob.de>2014-07-16 01:34:21 +0000
commitb4db99c76ab3b0eed1a90b142aa420960adb2ae4 (patch)
tree49f4a345106f54f4d28bf5729d491dc07d62ab01 /llvm/lib
parentf4a391c07fffba4631bd2b1b01d85120da125ee0 (diff)
downloadbcm5719-llvm-b4db99c76ab3b0eed1a90b142aa420960adb2ae4.tar.gz
bcm5719-llvm-b4db99c76ab3b0eed1a90b142aa420960adb2ae4.zip
Fix comment in InstCombiner::visitAddrSpaceCast.
In the original version of the patch the behaviour was like described in the comment. This behaviour was changed before committing it without updating the comment. llvm-svn: 213117
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
index ff083d7926c..b9c3d0f6471 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
@@ -1909,9 +1909,9 @@ Instruction *InstCombiner::visitBitCast(BitCastInst &CI) {
}
Instruction *InstCombiner::visitAddrSpaceCast(AddrSpaceCastInst &CI) {
- // If the destination pointer element type is not the the same as the source's
- // do the addrspacecast to the same type, and then the bitcast in the new
- // address space. This allows the cast to be exposed to other transforms.
+ // If the destination pointer element type is not the same as the source's
+ // first do a bitcast to the destination type, and then the addrspacecast.
+ // This allows the cast to be exposed to other transforms.
Value *Src = CI.getOperand(0);
PointerType *SrcTy = cast<PointerType>(Src->getType()->getScalarType());
PointerType *DestTy = cast<PointerType>(CI.getType()->getScalarType());
OpenPOWER on IntegriCloud