[llvm-commits] [dragonegg] r166761 - /dragonegg/trunk/src/x86/Target.cpp
Duncan Sands
baldrick at free.fr
Fri Oct 26 00:56:39 PDT 2012
Author: baldrick
Date: Fri Oct 26 02:56:38 2012
New Revision: 166761
URL: http://llvm.org/viewvc/llvm-project?rev=166761&view=rev
Log:
Use new address space API here too.
Modified:
dragonegg/trunk/src/x86/Target.cpp
Modified: dragonegg/trunk/src/x86/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/x86/Target.cpp?rev=166761&r1=166760&r2=166761&view=diff
==============================================================================
--- dragonegg/trunk/src/x86/Target.cpp (original)
+++ dragonegg/trunk/src/x86/Target.cpp Fri Oct 26 02:56:38 2012
@@ -790,7 +790,7 @@
MDNode *Node = MDNode::get(Context, Builder.getInt32(1));
// Convert the type of the pointer to a pointer to the stored type.
- unsigned AS = cast<PointerType>(Ops[0]->getType())->getAddressSpace();
+ unsigned AS = Ops[0]->getType()->getPointerAddressSpace();
Value *Ptr = Builder.CreateBitCast(Ops[0],
PointerType::get(Ops[1]->getType(), AS),
"cast");
More information about the llvm-commits
mailing list