[llvm] r350843 - Repair compilation of llvm-stress after r350835.
James Y Knight via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 10 08:43:26 PST 2019
Author: jyknight
Date: Thu Jan 10 08:43:26 2019
New Revision: 350843
URL: http://llvm.org/viewvc/llvm-project?rev=350843&view=rev
Log:
Repair compilation of llvm-stress after r350835.
Apparently it doesn't get built by 'ninja check'. :(
Modified:
llvm/trunk/tools/llvm-stress/llvm-stress.cpp
Modified: llvm/trunk/tools/llvm-stress/llvm-stress.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-stress/llvm-stress.cpp?rev=350843&r1=350842&r2=350843&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-stress/llvm-stress.cpp (original)
+++ llvm/trunk/tools/llvm-stress/llvm-stress.cpp Thu Jan 10 08:43:26 2019
@@ -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<PointerType>(Ptr->getType());
Value *Val = getRandomValue(Tp->getElementType());
Type *ValTy = Val->getType();
More information about the llvm-commits
mailing list