From d2ea65b7da820656576b8d9517294385d2194995 Mon Sep 17 00:00:00 2001 From: James Y Knight Date: Thu, 10 Jan 2019 16:43:26 +0000 Subject: [PATCH] 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 --- tools/llvm-stress/llvm-stress.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.50.1