diff options
author | Gabor Greif <ggreif@gmail.com> | 2009-01-05 17:19:25 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2009-01-05 17:19:25 +0000 |
commit | 70bc1af014b4cc02e13433949af0ed586ea70ec7 (patch) | |
tree | c2b7abbbe58b0cf0e7620ef95e3cf46fc51eb1a0 | |
parent | 3963426e66326d20cd6b55a12caedc656e8d7854 (diff) | |
download | external_llvm-70bc1af014b4cc02e13433949af0ed586ea70ec7.zip external_llvm-70bc1af014b4cc02e13433949af0ed586ea70ec7.tar.gz external_llvm-70bc1af014b4cc02e13433949af0ed586ea70ec7.tar.bz2 |
another fix to my previous commit:
* some picky <g> 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
-rw-r--r-- | lib/VMCore/Use.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/VMCore/Use.cpp b/lib/VMCore/Use.cpp index c44c17f..0c566a9 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<Use**>(Done == 0 ? fullStopTag : stopTag)); + Stop->Prev.setFromOpaqueValue(reinterpret_cast<Use**>(Done == 0 + ? fullStopTag + : stopTag)); ++Done; Count = Done; } else { @@ -138,7 +140,8 @@ struct AugmentedUse : Use { User *Use::getUser() const { const Use *End = getImpliedUser(); - PointerIntPair<User*, 1, Tag>& ref(static_cast<const AugmentedUse*>(End - 1)->ref); + const PointerIntPair<User*, 1, Tag>& ref( + static_cast<const AugmentedUse*>(End - 1)->ref); User *She = ref.getPointer(); return ref.getInt() ? She |