diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2012-09-05 22:26:57 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2012-09-05 22:26:57 +0000 |
commit | ad06cee239ab6baaa8bdd8ce3b381faf1cc0e8f1 (patch) | |
tree | bdd8f9546bc9b5b2df114c513474027b0bb5c7d5 /llvm/lib/Transforms | |
parent | cbd2a1983f77fc655d7dd620e6287c82776c5698 (diff) | |
download | bcm5719-llvm-ad06cee239ab6baaa8bdd8ce3b381faf1cc0e8f1.tar.gz bcm5719-llvm-ad06cee239ab6baaa8bdd8ce3b381faf1cc0e8f1.zip |
Stop casting away const qualifier needlessly.
llvm-svn: 163258
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 04cc11dea04..6cd3bbc4d8b 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -732,8 +732,8 @@ namespace { } static int ConstantIntSortPredicate(const void *P1, const void *P2) { - const ConstantInt *LHS = *(const ConstantInt**)P1; - const ConstantInt *RHS = *(const ConstantInt**)P2; + const ConstantInt *LHS = *(const ConstantInt*const*)P1; + const ConstantInt *RHS = *(const ConstantInt*const*)P2; if (LHS->getValue().ult(RHS->getValue())) return 1; if (LHS->getValue() == RHS->getValue()) |