diff options
author | Dan Gohman <gohman@apple.com> | 2010-10-19 21:06:16 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-10-19 21:06:16 +0000 |
commit | b4aa503501052658fc4759498c3c78ba5cc46df1 (patch) | |
tree | e1449c9e7f126da3fd4fecd7cb161fc2517b59ce /llvm/lib/Analysis/Lint.cpp | |
parent | a4941690cc6d08a7e159373c66bbeeb174abc2f0 (diff) | |
download | bcm5719-llvm-b4aa503501052658fc4759498c3c78ba5cc46df1.tar.gz bcm5719-llvm-b4aa503501052658fc4759498c3c78ba5cc46df1.zip |
Revert r116831 and r116839, which are breaking selfhost builds.
llvm-svn: 116858
Diffstat (limited to 'llvm/lib/Analysis/Lint.cpp')
-rw-r--r-- | llvm/lib/Analysis/Lint.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/Lint.cpp b/llvm/lib/Analysis/Lint.cpp index b27ca47142f..daeaf344fdd 100644 --- a/llvm/lib/Analysis/Lint.cpp +++ b/llvm/lib/Analysis/Lint.cpp @@ -70,7 +70,7 @@ namespace { void visitCallSite(CallSite CS); void visitMemoryReference(Instruction &I, Value *Ptr, - uint64_t Size, unsigned Align, + unsigned Size, unsigned Align, const Type *Ty, unsigned Flags); void visitCallInst(CallInst &I); @@ -277,7 +277,7 @@ void Lint::visitCallSite(CallSite CS) { // Check that the memcpy arguments don't overlap. The AliasAnalysis API // isn't expressive enough for what we really want to do. Known partial // overlap is not distinguished from the case where nothing is known. - uint64_t Size = 0; + unsigned Size = 0; if (const ConstantInt *Len = dyn_cast<ConstantInt>(findValue(MCI->getLength(), /*OffsetOk=*/false))) @@ -361,7 +361,7 @@ void Lint::visitReturnInst(ReturnInst &I) { // TODO: Check that the reference is in bounds. // TODO: Check readnone/readonly function attributes. void Lint::visitMemoryReference(Instruction &I, - Value *Ptr, uint64_t Size, unsigned Align, + Value *Ptr, unsigned Size, unsigned Align, const Type *Ty, unsigned Flags) { // If no memory is being referenced, it doesn't matter if the pointer // is valid. |