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 | 0ccc12ae8bab69d4ec8e265fff1865db9553137f (patch) | |
tree | c927e129b2806e926abb84752a9670a9c8f6f449 /lib/Transforms/Scalar/CodeGenPrepare.cpp | |
parent | 12e3349de9a13e133d8a59ce4c517a8e95bd91c3 (diff) | |
download | llvm-0ccc12ae8bab69d4ec8e265fff1865db9553137f.tar.gz llvm-0ccc12ae8bab69d4ec8e265fff1865db9553137f.tar.bz2 llvm-0ccc12ae8bab69d4ec8e265fff1865db9553137f.tar.xz |
Fix warnings due to 132263; Thanks rdivacky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132285 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/CodeGenPrepare.cpp')
-rw-r--r-- | lib/Transforms/Scalar/CodeGenPrepare.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/CodeGenPrepare.cpp b/lib/Transforms/Scalar/CodeGenPrepare.cpp index db9f4ec7a4..0af14ed17b 100644 --- a/lib/Transforms/Scalar/CodeGenPrepare.cpp +++ b/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. |