diff options
author | Chris Lattner <sabre@nondot.org> | 2011-02-14 18:15:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-02-14 18:15:46 +0000 |
commit | 34442e6ebf50d387d989a0377811891024dcd0a7 (patch) | |
tree | eb6da1371686101d2663514387ad020765e44ae3 /llvm/lib/Analysis/ConstantFolding.cpp | |
parent | 556c45e9c5ff293a9cf4136f4fe8b8592bab992a (diff) | |
download | llvm-34442e6ebf50d387d989a0377811891024dcd0a7.zip llvm-34442e6ebf50d387d989a0377811891024dcd0a7.tar.gz llvm-34442e6ebf50d387d989a0377811891024dcd0a7.tar.bz2 |
revert my ConstantVector patch, it seems to have made the llvm-gcc
builders unhappy.
llvm-svn: 125504
Diffstat (limited to 'llvm/lib/Analysis/ConstantFolding.cpp')
-rw-r--r-- | llvm/lib/Analysis/ConstantFolding.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp index cd8d52c..95e8bde 100644 --- a/llvm/lib/Analysis/ConstantFolding.cpp +++ b/llvm/lib/Analysis/ConstantFolding.cpp @@ -54,7 +54,7 @@ static Constant *FoldBitCast(Constant *C, const Type *DestTy, // vector so the code below can handle it uniformly. if (isa<ConstantFP>(C) || isa<ConstantInt>(C)) { Constant *Ops = C; // don't take the address of C! - return FoldBitCast(ConstantVector::get(Ops), DestTy, TD); + return FoldBitCast(ConstantVector::get(&Ops, 1), DestTy, TD); } // If this is a bitcast from constant vector -> vector, fold it. @@ -167,7 +167,7 @@ static Constant *FoldBitCast(Constant *C, const Type *DestTy, } } - return ConstantVector::get(Result); + return ConstantVector::get(Result.data(), Result.size()); } |