diff options
| author | Chris Lattner <sabre@nondot.org> | 2011-07-18 04:54:35 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2011-07-18 04:54:35 +0000 | 
| commit | 229907cd11658776a6c7451de74b9e16ba637d9c (patch) | |
| tree | 56a83033fb7b2337bf90a7b23ca87e9a0e8b62f7 /llvm/lib/Transforms/Utils/SimplifyCFG.cpp | |
| parent | 805d09459df33da12c3dc3cf6ab7806baebbe4c8 (diff) | |
| download | llvm-229907cd11658776a6c7451de74b9e16ba637d9c.zip llvm-229907cd11658776a6c7451de74b9e16ba637d9c.tar.gz llvm-229907cd11658776a6c7451de74b9e16ba637d9c.tar.bz2  | |
land David Blaikie's patch to de-constify Type, with a few tweaks.
llvm-svn: 135375
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 9d9c324..52145b9 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -322,7 +322,7 @@ static ConstantInt *GetConstantInt(Value *V, const TargetData *TD) {    // This is some kind of pointer constant. Turn it into a pointer-sized    // ConstantInt if possible. -  const IntegerType *PtrTy = TD->getIntPtrType(V->getContext()); +  IntegerType *PtrTy = TD->getIntPtrType(V->getContext());    // Null pointer means 0, see SelectionDAGBuilder::getValue(const Value*).    if (isa<ConstantPointerNull>(V))  | 
