diff --git a/llvm/lib/VMCore/Use.cpp b/llvm/lib/VMCore/Use.cpp index c44c17f55e5f..0c566a9cb70a 100644 --- a/llvm/lib/VMCore/Use.cpp +++ b/llvm/lib/VMCore/Use.cpp @@ -91,7 +91,9 @@ Use *Use::initTags(Use * const Start, Use *Stop, ptrdiff_t Done) { --Stop; Stop->Val = 0; if (!Count) { - Stop->Prev.setFromOpaqueValue(reinterpret_cast(Done == 0 ? fullStopTag : stopTag)); + Stop->Prev.setFromOpaqueValue(reinterpret_cast(Done == 0 + ? fullStopTag + : stopTag)); ++Done; Count = Done; } else { @@ -138,7 +140,8 @@ struct AugmentedUse : Use { User *Use::getUser() const { const Use *End = getImpliedUser(); - PointerIntPair& ref(static_cast(End - 1)->ref); + const PointerIntPair& ref( + static_cast(End - 1)->ref); User *She = ref.getPointer(); return ref.getInt() ? She