diff options
author | Chris Lattner <sabre@nondot.org> | 2007-09-15 06:51:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-09-15 06:51:03 +0000 |
commit | 389c914b9c023acab366039cd21d1c1d6ad4aa51 (patch) | |
tree | 923dad62d2c58081090203fc661b8f37e7421d8e /include/llvm/Instructions.h | |
parent | 80dd3faff775670f07de56adb6da4f10c10311d1 (diff) | |
download | external_llvm-389c914b9c023acab366039cd21d1c1d6ad4aa51.zip external_llvm-389c914b9c023acab366039cd21d1c1d6ad4aa51.tar.gz external_llvm-389c914b9c023acab366039cd21d1c1d6ad4aa51.tar.bz2 |
Fix PR1666, SPASS with the CBE and 254.gap with the CBE.
GCC optimizes away things like ptr < NULL to false. To "fix" this,
have the CBE emit casts of pointers to intptr_t when doing relational
pointer comparisons.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41983 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instructions.h')
-rw-r--r-- | include/llvm/Instructions.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 5aeccec..98df15e 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -660,7 +660,7 @@ public: /// @returns true if the predicate of this ICmpInst is signed, false otherwise /// @brief Determine if this instruction's predicate is signed. - bool isSignedPredicate() { return isSignedPredicate(getPredicate()); } + bool isSignedPredicate() const { return isSignedPredicate(getPredicate()); } /// @returns true if the predicate provided is signed, false otherwise /// @brief Determine if the predicate is signed. |