diff options
| author | Nadav Rotem <nadav.rotem@intel.com> | 2011-05-29 08:10:47 +0000 | 
|---|---|---|
| committer | Nadav Rotem <nadav.rotem@intel.com> | 2011-05-29 08:10:47 +0000 | 
| commit | 707f2d7787d99a14bfa7587b94d5387fc99fc431 (patch) | |
| tree | 7eea64fcbf809f34dccc55b8ba79ffb06c129b59 /llvm/lib | |
| parent | a923fb2b3b009ff7a6c516f54c401c5fb533bc0c (diff) | |
| download | bcm5719-llvm-707f2d7787d99a14bfa7587b94d5387fc99fc431.tar.gz bcm5719-llvm-707f2d7787d99a14bfa7587b94d5387fc99fc431.zip | |
Fix warnings due to 132263; Thanks rdivacky.
llvm-svn: 132285
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp b/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp index db9f4ec7a42..0af14ed17bf 100644 --- a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp +++ b/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp @@ -371,9 +371,11 @@ static bool OptimizeNoopCopyExpression(CastInst *CI, const TargetLowering &TLI){    // If these values will be promoted, find out what they will be promoted    // to.  This helps us consider truncates on PPC as noop copies when they    // are. -  if (TLI.getTypeAction(CI->getContext(), SrcVT) == TargetLowering::Promote) +  if (TLI.getTypeAction(CI->getContext(), SrcVT) == +      TargetLowering::TypePromoteInteger)      SrcVT = TLI.getTypeToTransformTo(CI->getContext(), SrcVT); -  if (TLI.getTypeAction(CI->getContext(), DstVT) == TargetLowering::Promote) +  if (TLI.getTypeAction(CI->getContext(), DstVT) == +      TargetLowering::TypePromoteInteger)      DstVT = TLI.getTypeToTransformTo(CI->getContext(), DstVT);    // If, after promotion, these are the same types, this is a noop copy. | 

