[llvm] r359981 - [X86] Make X86RegisterInfo(const Triple &TT) constructor explicit.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun May 5 05:51:48 PDT 2019
Author: rksimon
Date: Sun May 5 05:51:47 2019
New Revision: 359981
URL: http://llvm.org/viewvc/llvm-project?rev=359981&view=rev
Log:
[X86] Make X86RegisterInfo(const Triple &TT) constructor explicit.
Fixes cppcheck warning.
Modified:
llvm/trunk/lib/Target/X86/X86RegisterInfo.h
Modified: llvm/trunk/lib/Target/X86/X86RegisterInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86RegisterInfo.h?rev=359981&r1=359980&r2=359981&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86RegisterInfo.h (original)
+++ llvm/trunk/lib/Target/X86/X86RegisterInfo.h Sun May 5 05:51:47 2019
@@ -49,7 +49,7 @@ private:
unsigned BasePtr;
public:
- X86RegisterInfo(const Triple &TT);
+ explicit X86RegisterInfo(const Triple &TT);
// FIXME: This should be tablegen'd like getDwarfRegNum is
int getSEHRegNum(unsigned i) const;
More information about the llvm-commits
mailing list