diff options
| author | Dan Gohman <gohman@apple.com> | 2009-11-20 23:18:13 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-11-20 23:18:13 +0000 |
| commit | 885793baaed110c848ccfdfb460bbc91774d8981 (patch) | |
| tree | abb27ef9149ed31fa94e92ccb065a36bf61c4257 /lib/Target/PowerPC/PPCISelLowering.cpp | |
| parent | b02aec51b2ea2206de1d61e7f9abd59b18daac1c (diff) | |
| download | external_llvm-885793baaed110c848ccfdfb460bbc91774d8981.zip external_llvm-885793baaed110c848ccfdfb460bbc91774d8981.tar.gz external_llvm-885793baaed110c848ccfdfb460bbc91774d8981.tar.bz2 | |
Target-independent support for TargetFlags on BlockAddress operands,
and support for blockaddresses in x86-32 PIC mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89506 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCISelLowering.cpp')
| -rw-r--r-- | lib/Target/PowerPC/PPCISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 099fcb5..d24f483 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -1174,7 +1174,7 @@ SDValue PPCTargetLowering::LowerBlockAddress(SDValue Op, SelectionDAG &DAG) { DebugLoc DL = Op.getDebugLoc(); BlockAddress *BA = cast<BlockAddressSDNode>(Op)->getBlockAddress(); - SDValue TgtBA = DAG.getBlockAddress(BA, DL, /*isTarget=*/true); + SDValue TgtBA = DAG.getBlockAddress(BA, PtrVT, /*isTarget=*/true); SDValue Zero = DAG.getConstant(0, PtrVT); SDValue Hi = DAG.getNode(PPCISD::Hi, DL, PtrVT, TgtBA, Zero); SDValue Lo = DAG.getNode(PPCISD::Lo, DL, PtrVT, TgtBA, Zero); |
