diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-03-23 14:40:20 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-03-23 14:40:20 +0000 |
commit | 0054c7a867f85f52fdcc11279d696160de92c9f8 (patch) | |
tree | c2a6196deeb8bfeda0d5a3abf072cae3b6463a9d /lib/VMCore/Function.cpp | |
parent | 050560e535fe10b59ba608f19b43cfecd02c75b7 (diff) |
add assert in argpromotion, which cannot trigger
if Function::hasAddressTaken works as advertised
also included some cosmetic cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99276 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r-- | lib/VMCore/Function.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index dbc283e49a..4f55098da1 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -400,8 +400,8 @@ Function *Intrinsic::getDeclaration(Module *M, ID id, const Type **Tys, #include "llvm/Intrinsics.gen" #undef GET_LLVM_INTRINSIC_FOR_GCC_BUILTIN - /// hasAddressTaken - returns true if there are any uses of this function - /// other than direct calls or invokes to it. +/// hasAddressTaken - returns true if there are any uses of this function +/// other than direct calls or invokes to it. bool Function::hasAddressTaken() const { for (Value::use_const_iterator I = use_begin(), E = use_end(); I != E; ++I) { if (I.getOperandNo() != 0 || |