diff --git a/lib/Transforms/IPO/MergeFunctions.cpp b/lib/Transforms/IPO/MergeFunctions.cpp index d8eddab923c..d4ecd55d033 100644 --- a/lib/Transforms/IPO/MergeFunctions.cpp +++ b/lib/Transforms/IPO/MergeFunctions.cpp @@ -460,7 +460,7 @@ bool FunctionComparator::Enumerate(const Value *V1, const Value *V2) { if (V1 == F2 && V2 == F1) return true; - if (Constant *C1 = dyn_cast(V1)) { + if (const Constant *C1 = dyn_cast(V1)) { if (V1 == V2) return true; const Constant *C2 = dyn_cast(V2); if (!C2) return false;