summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorJuergen Ributzka <juergen@apple.com>2014-12-09 19:44:38 +0000
committerJuergen Ributzka <juergen@apple.com>2014-12-09 19:44:38 +0000
commitc6f314b8ed06eec96cace55a293f3a59e914d9d0 (patch)
treee7f00e0f32869bed37ac221121126869761561a5 /llvm/lib/Target
parentb90754223529bd9ec7dd4020b90423cc9163db12 (diff)
downloadbcm5719-llvm-c6f314b8ed06eec96cace55a293f3a59e914d9d0.tar.gz
bcm5719-llvm-c6f314b8ed06eec96cace55a293f3a59e914d9d0.zip
[FastISel][AArch64] Fix a missing nullptr check in 'computeAddress'.
The load/store value type is currently not available when lowering the memcpy intrinsic. Add the missing nullptr check to support this in 'computeAddress'. Fixes rdar://problem/19178947. llvm-svn: 223818
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/AArch64/AArch64FastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64FastISel.cpp b/llvm/lib/Target/AArch64/AArch64FastISel.cpp
index d942ace427b..3cad316c284 100644
--- a/llvm/lib/Target/AArch64/AArch64FastISel.cpp
+++ b/llvm/lib/Target/AArch64/AArch64FastISel.cpp
@@ -753,7 +753,7 @@ bool AArch64FastISel::computeAddress(const Value *Obj, Address &Addr, Type *Ty)
if (Addr.getOffsetReg())
break;
- if (DL.getTypeSizeInBits(Ty) != 8)
+ if (!Ty || DL.getTypeSizeInBits(Ty) != 8)
break;
const Value *LHS = U->getOperand(0);
OpenPOWER on IntegriCloud