diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2015-02-14 09:14:44 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2015-02-14 09:14:44 +0000 |
| commit | 003ed332bfe47a6fc1622fa3c2431121758cfe35 (patch) | |
| tree | 32e4c5327de402e89e12a3f7fbd69abeea40a7ec | |
| parent | 1536f0641b0b2971f2c9a519834446d5fe8fbbf6 (diff) | |
| download | bcm5719-llvm-003ed332bfe47a6fc1622fa3c2431121758cfe35.tar.gz bcm5719-llvm-003ed332bfe47a6fc1622fa3c2431121758cfe35.zip | |
Remove a variable only used in an assert and sink its initializer into
the assert. Fixes -Wunused-variable on non-asserts builds.
llvm-svn: 229250
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCFrameLowering.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp b/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp index 66e248d069e..10429db9b90 100644 --- a/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp @@ -573,10 +573,9 @@ void PPCFrameLowering::emitPrologue(MachineFunction &MF) const { // Get processor type. bool isPPC64 = Subtarget.isPPC64(); // Get the ABI. - bool isDarwinABI = Subtarget.isDarwinABI(); bool isSVR4ABI = Subtarget.isSVR4ABI(); bool isELFv2ABI = Subtarget.isELFv2ABI(); - assert((isDarwinABI || isSVR4ABI) && + assert((Subtarget.isDarwinABI() || isSVR4ABI) && "Currently only Darwin and SVR4 ABIs are supported for PowerPC."); // Scan the prolog, looking for an UPDATE_VRSAVE instruction. If we find it, |

