From: Gabor Greif Date: Mon, 5 Jan 2009 17:19:25 +0000 (+0000) Subject: another fix to my previous commit: X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9add869ee2e8f70a96794025f50cf784a6a8d459;p=oota-llvm.git another fix to my previous commit: * some picky compilers get insulted by const-incorrectness * respect 80-char limit git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61701 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Use.cpp b/lib/VMCore/Use.cpp index c44c17f55e5..0c566a9cb70 100644 --- a/lib/VMCore/Use.cpp +++ b/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