diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h index c5a892ced22..c75e5d8c4eb 100644 --- a/include/llvm/Analysis/ScalarEvolution.h +++ b/include/llvm/Analysis/ScalarEvolution.h @@ -254,7 +254,7 @@ namespace llvm { /// addInsertedValue - Remember the specified instruction as being the /// canonical form for the specified SCEV. void addInsertedValue(Instruction *I, SCEV *S) { - InsertedExpressions[S] = I; + InsertedExpressions[S] = (Value*)I; InsertedInstructions.insert(I); }