[llvm] r211837 - Remove extraneous parens and extraneous const cast (and fix the
Eric Christopher
echristo at gmail.com
Thu Jun 26 18:27:03 PDT 2014
Author: echristo
Date: Thu Jun 26 20:27:03 2014
New Revision: 211837
URL: http://llvm.org/viewvc/llvm-project?rev=211837&view=rev
Log:
Remove extraneous parens and extraneous const cast (and fix the
prototype for the function to patch what we were returning).
Modified:
llvm/trunk/lib/Target/NVPTX/NVPTXTargetMachine.h
Modified: llvm/trunk/lib/Target/NVPTX/NVPTXTargetMachine.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/NVPTX/NVPTXTargetMachine.h?rev=211837&r1=211836&r2=211837&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXTargetMachine.h (original)
+++ llvm/trunk/lib/Target/NVPTX/NVPTXTargetMachine.h Thu Jun 26 20:27:03 2014
@@ -59,11 +59,11 @@ public:
const NVPTXSubtarget *getSubtargetImpl() const override { return &Subtarget; }
const NVPTXRegisterInfo *getRegisterInfo() const override {
- return &(InstrInfo.getRegisterInfo());
+ return &InstrInfo.getRegisterInfo();
}
- NVPTXTargetLowering *getTargetLowering() const override {
- return const_cast<NVPTXTargetLowering *>(&TLInfo);
+ const NVPTXTargetLowering *getTargetLowering() const override {
+ return &TLInfo;
}
const TargetSelectionDAGInfo *getSelectionDAGInfo() const override {
More information about the llvm-commits
mailing list