From: James Y Knight Date: Thu, 10 Jan 2019 16:43:26 +0000 (+0000) Subject: Repair compilation of llvm-stress after r350835. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2ea65b7da820656576b8d9517294385d2194995;p=llvm Repair compilation of llvm-stress after r350835. Apparently it doesn't get built by 'ninja check'. :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350843 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-stress/llvm-stress.cpp b/tools/llvm-stress/llvm-stress.cpp index f7aff195e5d..c29b7a7f7e4 100644 --- a/tools/llvm-stress/llvm-stress.cpp +++ b/tools/llvm-stress/llvm-stress.cpp @@ -356,7 +356,7 @@ struct StoreModifier: public Modifier { void Act() override { // Try to use predefined pointers. If non-exist, use undef pointer value; Value *Ptr = getRandomPointerValue(); - PointerType *Tp = Ptr->getType(); + PointerType *Tp = cast(Ptr->getType()); Value *Val = getRandomValue(Tp->getElementType()); Type *ValTy = Val->getType();