forked from OSchip/llvm-project
parent
c799fe9ed9
commit
d5f857f2e5
|
@ -419,8 +419,9 @@ Value *ScalarExprEmitter::VisitImplicitCastExpr(const ImplicitCastExpr *E) {
|
|||
llvm::Value *Ops[] = {Idx0, Idx0};
|
||||
return Builder.CreateGEP(V, Ops, Ops+2, "arraydecay");
|
||||
} else if (E->getType()->isReferenceType()) {
|
||||
assert(cast<ReferenceType>(E->getType())->getReferenceeType() ==
|
||||
Op->getType() && "Incompatible types!");
|
||||
assert(cast<ReferenceType>(E->getType().getCanonicalType())->
|
||||
getReferenceeType() ==
|
||||
Op->getType().getCanonicalType() && "Incompatible types!");
|
||||
|
||||
return EmitLValue(Op).getAddress();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue