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 | 161cb044f381d22977c96019cc9d42d0094cb11c (patch) | |
tree | 09089b5fd91671c5731eff96bcca6ef02f1a7d51 /llvm/lib/VMCore/Function.cpp | |
parent | 668d700fe3518de43a848bd55e3aea7ccc9c5ade (diff) | |
download | bcm5719-llvm-161cb044f381d22977c96019cc9d42d0094cb11c.tar.gz bcm5719-llvm-161cb044f381d22977c96019cc9d42d0094cb11c.zip |
add assert in argpromotion, which cannot trigger
if Function::hasAddressTaken works as advertised
also included some cosmetic cleanups
llvm-svn: 99276
Diffstat (limited to 'llvm/lib/VMCore/Function.cpp')
-rw-r--r-- | llvm/lib/VMCore/Function.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp index dbc283e49ac..4f55098da16 100644 --- a/llvm/lib/VMCore/Function.cpp +++ b/llvm/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 || |